Skip to content

Commit 53ac700

Browse files
authored
Fix directions for publish trimmed (#43880)
1 parent bdae2ee commit 53ac700

File tree

4 files changed

+6
-16
lines changed

4 files changed

+6
-16
lines changed
30.3 KB
Loading
28.8 KB
Loading
29 KB
Loading

docs/core/deploying/trimming/trim-self-contained.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,27 +55,17 @@ For more information, see [Publish .NET apps with .NET CLI](../deploy-with-cli.m
5555

5656
### Publish with Visual Studio
5757

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**.
5959

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.":::
6161

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**.
6363

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.":::
6565

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.
6767

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.":::
7969

8070
For more information, see [Publish .NET Core apps with Visual Studio](../deploy-with-vs.md).
8171

0 commit comments

Comments
 (0)