Skip to content

Commit 258449e

Browse files
Merge pull request #13335 from Mikejo5000/mikejo-br25
Update .NET installer projects article
2 parents 241a7af + 93b788a commit 258449e

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

docs/deployment/installer-projects-net-core.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Visual Studio Installer Projects and .NET"
33
description: Explore how to use the Visual Studio Installer Projects Extension to package .NET Core 3.1 or .NET 5 and later version applications for Microsoft Installer (MSI).
44
titleSuffix: ""
5-
ms.date: "03/13/2024"
5+
ms.date: "11/13/2024"
66
ms.topic: "conceptual"
77
helpviewer_keywords:
88
- "installer projects"
@@ -17,7 +17,7 @@ monikerRange: '>= vs-2019'
1717

1818
Packaging applications as an MSI is often accomplished using the Visual Studio Installer Projects Extension.
1919

20-
This article applies to apps targeting .NET Core 3.1, .NET 5, .NET 6, and later.
20+
This article applies to apps targeting .NET Core 3.1 and .NET 5 or later versions.
2121

2222
You can download the extension here:
2323

@@ -52,13 +52,20 @@ To learn more about these deployment strategies, see [.NET application publishin
5252

5353
### Workflow changes for .NET Core 3.1 and .NET 5 or later
5454

55-
1. Select **Publish Items** instead of **Primary Output** to get the correct output for .NET Core 3.1 and .NET 5.0 or later projects. To bring up this dialog, select **Add** > **Project Output...** from the project's context menu.
55+
- To get the correct output for .NET Core 3.1 and .NET 5.0 or later projects, select **Publish Items** instead of **Primary Output** in the **Add Project Output Group** dialog box. To open this dialog, select **Add** > **Project Output...** from the Setup project's context menu.
5656

57-
![The Publish Items output group in the Add Project Output Group dialog](../deployment/media/installer-projects-net-core-publish-items-output.png "Pick Publish Items")
57+
![The Publish Items output group in the Add Project Output Group dialog](../deployment/media/installer-projects-net-core-publish-items-output.png "Pick Publish Items")
5858

59-
2. To create a self-contained installer, set the **PublishProfilePath** property on the **Publish Items** node in the setup project, using the relative path of a publish profile with the correct properties set.
59+
- To create a self-contained installer, set the **PublishProfilePath** property on the **Publish Items** node in the Setup project, using the relative path of a publish profile with the correct properties set.
6060

61-
![Setting the publish profile on the Publish Items project output item](../deployment/media/installer-projects-net-core-publish-profile.png "Set Publish Profile")
61+
::: moniker range=">= vs-2022"
62+
:::image type="content" source="../deployment/media/vs-2022/installer-projects-net-core-publish-profile.png" border="false" alt-text="Screenshot that shows setting the publish profile on the Publish Items project output item." lightbox="../deployment/media/vs-2022/installer-projects-net-core-publish-profile.png":::
63+
::: moniker-end
64+
::: moniker range="vs-2019"
65+
![Screenshot of setting the publish profile on the Publish Items project output item.](../deployment/media/installer-projects-net-core-publish-profile.png "Set Publish Profile")
66+
::: moniker-end
67+
68+
Before you can set this property, create a publish profile from the application project by choosing **Publish** from the application project's context menu in Solution Explorer, and deploy the application to a folder.
6269

6370
>[!NOTE]
6471
>This workflow is not supported for ASP.NET Core applications, only Windows Desktop applications.
@@ -69,7 +76,7 @@ If you would like your installer to be able to install the necessary runtime for
6976

7077
![.NET Core items in the Prerequisites dialog](../deployment/media/installer-projects-net-core-prerequisites.png ".NET Core Prerequisites")
7178

72-
The **.NET Core Runtime...** option should be selected for console applications, **.NET Desktop Runtime...** should be selected for WPF/WinForms applications.
79+
The **.NET Core Runtime...** option should be selected for console applications, **.NET Desktop Runtime...** should be selected for WPF and WinForms applications.
7380

7481
>[!NOTE]
7582
>These items are present starting with the Visual Studio 2019 Update 7 release.
55.5 KB
Loading

0 commit comments

Comments
 (0)