You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deployment/trimming.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Trim a .NET MAUI app"
3
3
description: "Learn about the .NET trimmer, which eliminates unused code from a .NET MAUI app to reduce its size."
4
-
ms.date: 12/03/2024
4
+
ms.date: 12/20/2024
5
5
no-loc: [ ILLink ]
6
6
monikerRange: ">=net-maui-9.0"
7
7
---
@@ -35,8 +35,10 @@ The `full` trim mode removes any code that's not used by your app. The `partial`
35
35
36
36
This is equivalent to setting `[AssemblyMetadata("IsTrimmable", "True")]` when building the assembly.
37
37
38
+
In a .NET MAUI app, it's not necessary to set the `$(PublishTrimmed)` build property to `true` in your app's project file, because this is set by default.
39
+
38
40
> [!NOTE]
39
-
> It's not necessary to set the `$(PublishTrimmed)` build property to `true` in your app's project file, because this is set by default.
41
+
> Don't set the `$(TrimMode)` build property when using Native AOT deployment. Native AOT deployment automatically performs full trimming of your app. For more information, see [Native AOT deployment on iOS and Mac Catalyst](nativeaot.md).
40
42
41
43
For more trimming options, see [Trimming options](/dotnet/core/deploying/trimming/trimming-options).
0 commit comments