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/core/deploying/trimming/trim-self-contained.md
+6-16Lines changed: 6 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,27 +55,17 @@ For more information, see [Publish .NET apps with .NET CLI](../deploy-with-cli.m
55
55
56
56
### Publish with Visual Studio
57
57
58
-
01. In **Solution Explorer**, right-click on the project you want to publish and select **Publish**.
58
+
01. In **Solution Explorer**, right-click on the project you want to publish and select **Properties**.
59
59
60
-
:::image type="content" source="../media/trim-self-contained/visual-studio-solution-explorer.png" alt-text="Solution Explorer with a right-click menu highlighting the Publish option.":::
60
+
:::image type="content" source="../media/trim-self-contained/vs-project-properties.png" alt-text="Solution Explorer with a right-click menu highlighting the Properties option.":::
61
61
62
-
If you don't already have a publishing profile, follow the instructions to create one and choose the **Folder** target-type.
62
+
01. Choose **Build** > **Publish**.
63
63
64
-
01. Choose **More actions** > **Edit**.
64
+
:::image type="content" source="../media/trim-self-contained/vs-build-publish.png" alt-text="Visual studio publish page with Publish Trimmed option.":::
65
65
66
-
:::image type="content" source="../media/trim-self-contained/visual-studio-publish-edit-settings.png" alt-text="Visual studio publish profile with edit button.":::
66
+
01. Select **Publish trimmed** to publish your app trimmed.
67
67
68
-
01. In the **Profile settings** dialog, set the following options:
69
-
70
-
- Set **Deployment mode** to **Self-contained**.
71
-
- Set **Target runtime** to the platform you want to publish to.
72
-
- Select **Trim unused code**.
73
-
74
-
Choose **Save** to save the settings and return to the **Publish** dialog.
75
-
76
-
:::image type="content" source="../media/trim-self-contained/visual-studio-publish-properties.png" alt-text="Profile settings dialog with deployment mode, target runtime, and trim unused assemblies options highlighted.":::
77
-
78
-
01. Choose **Publish** to publish your app trimmed.
68
+
:::image type="content" source="../media/trim-self-contained/vs-publish-trimmed.png" alt-text="Visual studio publish page with Publish Trimmed selected.":::
79
69
80
70
For more information, see [Publish .NET Core apps with Visual Studio](../deploy-with-vs.md).
0 commit comments