Skip to content

Commit fdb4e2d

Browse files
agockegewarren
andauthored
Update fixing-warnings.md (#43634)
* Update fixing-warnings.md Use more forceful language on removing trim warnings * Update docs/core/deploying/trimming/fixing-warnings.md Co-authored-by: Genevieve Warren <[email protected]> --------- Co-authored-by: Genevieve Warren <[email protected]>
1 parent cb06142 commit fdb4e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/deploying/trimming/fixing-warnings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.date: 10/30/2023
99

1010
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.
1111

12-
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.
12+
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.
1313

1414
This article helps you understand why some patterns produce trim warnings, and how these warnings can be addressed.
1515

0 commit comments

Comments
 (0)