From 2d9c9f503f6d490eec435b103d6170f23307ea41 Mon Sep 17 00:00:00 2001 From: Andy Gocke Date: Mon, 18 Nov 2024 13:05:48 -0800 Subject: [PATCH 1/2] Update fixing-warnings.md Use more forceful language on removing trim warnings --- docs/core/deploying/trimming/fixing-warnings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/deploying/trimming/fixing-warnings.md b/docs/core/deploying/trimming/fixing-warnings.md index c9dc82754d09a..3e64bda9f22d2 100644 --- a/docs/core/deploying/trimming/fixing-warnings.md +++ b/docs/core/deploying/trimming/fixing-warnings.md @@ -9,7 +9,7 @@ ms.date: 10/30/2023 Conceptually, [trimming](trim-self-contained.md) is simple: when you publish an application, the .NET SDK analyzes the entire application and removes all unused code. However, it can be difficult to determine what is unused, or more precisely, what is used. -To prevent changes in behavior when trimming applications, the .NET SDK provides static analysis of trim compatibility through **trim warnings**. The trimmer produces trim warnings when it finds code that might not be compatible with trimming. Code that's not trim-compatible can produce behavioral changes, or even crashes, in an application after it has been trimmed. Ideally, all applications that use trimming shouldn't produce any trim warnings. If there are any trim warnings, the app should be thoroughly tested after trimming to ensure that there are no behavior changes. +To prevent changes in behavior when trimming applications, the .NET SDK provides static analysis of trim compatibility through **trim warnings**. The trimmer produces trim warnings when it finds code that might not be compatible with trimming. Code that's not trim-compatible can produce behavioral changes, or even crashes, in an application after it has been trimmed. All applications that use trimming shouldn't produce any trim warnings. If there are any trim warnings, the app should be thoroughly tested after trimming to ensure that there are no behavior changes. This article helps you understand why some patterns produce trim warnings, and how these warnings can be addressed. From 802041bda0911a6a62949176eaa8a606f9419a04 Mon Sep 17 00:00:00 2001 From: Andy Gocke Date: Wed, 20 Nov 2024 07:38:36 -0800 Subject: [PATCH 2/2] Update docs/core/deploying/trimming/fixing-warnings.md Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> --- docs/core/deploying/trimming/fixing-warnings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/deploying/trimming/fixing-warnings.md b/docs/core/deploying/trimming/fixing-warnings.md index 3e64bda9f22d2..4eac01cbf9db5 100644 --- a/docs/core/deploying/trimming/fixing-warnings.md +++ b/docs/core/deploying/trimming/fixing-warnings.md @@ -9,7 +9,7 @@ ms.date: 10/30/2023 Conceptually, [trimming](trim-self-contained.md) is simple: when you publish an application, the .NET SDK analyzes the entire application and removes all unused code. However, it can be difficult to determine what is unused, or more precisely, what is used. -To prevent changes in behavior when trimming applications, the .NET SDK provides static analysis of trim compatibility through **trim warnings**. The trimmer produces trim warnings when it finds code that might not be compatible with trimming. Code that's not trim-compatible can produce behavioral changes, or even crashes, in an application after it has been trimmed. All applications that use trimming shouldn't produce any trim warnings. If there are any trim warnings, the app should be thoroughly tested after trimming to ensure that there are no behavior changes. +To prevent changes in behavior when trimming applications, the .NET SDK provides static analysis of trim compatibility through **trim warnings**. The trimmer produces trim warnings when it finds code that might not be compatible with trimming. Code that's not trim-compatible can produce behavioral changes, or even crashes, in an application after it has been trimmed. An app that uses trimming shouldn't produce any trim warnings. If there are any trim warnings, the app should be thoroughly tested after trimming to ensure that there are no behavior changes. This article helps you understand why some patterns produce trim warnings, and how these warnings can be addressed.