Skip to content

Commit a626059

Browse files
committed
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents 7d12bab + 70bb171 commit a626059

File tree

146 files changed

+357
-179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+357
-179
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Visual Studio documentation
22

3-
Welcome! This repo contains source files for the Visual Studio technical documentation. The topics are published at [Visual Studio product family documentation](https://docs.microsoft.com/visualstudio).
3+
Welcome! This repo contains source files for the Visual Studio technical documentation. The topics are published at [Visual Studio product family documentation](https://learn.microsoft.com/visualstudio).
44

55
This repo was moved on June 23, 2017 from https://github.com/Microsoft/vsdocs.
66

docs/containers/includes/vs-2017/container-tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With Visual Studio, you can easily build, debug, and run containerized ASP.NET C
1313
## Prerequisites
1414

1515
* [Docker Desktop](https://hub.docker.com/editions/community/docker-ce-desktop-windows)
16-
* [Visual Studio 2017](https://visualstudio.microsoft.com/vs/older-downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=vs+2017+download) with the **Web Development**, **Azure Tools** workload, and/or **.NET Core cross-platform development** workload installed
16+
* [Visual Studio 2017](https://visualstudio.microsoft.com/vs/older-downloads/?utm_medium=microsoft&utm_source=learn.microsoft.com&utm_campaign=vs+2017+download) with the **Web Development**, **Azure Tools** workload, and/or **.NET Core cross-platform development** workload installed
1717
* To publish to Azure Container Registry, an Azure subscription. [Sign up for a free trial](https://azure.microsoft.com/free/dotnet/).
1818

1919
## Installation and setup

docs/debugger/attach-to-running-processes-with-the-visual-studio-debugger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ If neither of those workarounds is possible, a third option is to attach to the
169169
::: moniker range=">= vs-2022"
170170
## Attach to a .NET Core process running on Azure App Service (Windows)
171171

172-
If you're publishing to Azure App Service (Windows), see [Remote debug ASP.NET Core on Azure](/learn/modules/dotnet-debug-visual-studio-azure-web-apps/) or [Debugging Azure App Services](/azure/vs-azure-tools-debug-cloud-services-virtual-machines#debugging-azure-app-services) for instructions.
172+
If you're publishing to Azure App Service (Windows), see [Remote debug ASP.NET Core on Azure](/training/modules/dotnet-debug-visual-studio-azure-web-apps/) or [Debugging Azure App Services](/azure/vs-azure-tools-debug-cloud-services-virtual-machines#debugging-azure-app-services) for instructions.
173173
::: moniker-end
174174

175175
::: moniker range="vs-2019"

docs/debugger/remote-debugging-aspnet-on-a-remote-iis-7-5-computer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To debug an ASP.NET application that has been deployed to IIS, install and run t
2323
This guide explains how to set up and configure a Visual Studio ASP.NET MVC 4.8 application, deploy it to IIS, and attach the remote debugger from Visual Studio.
2424

2525
> [!NOTE]
26-
> To remote debug ASP.NET Core instead, see [Remote Debug ASP.NET Core on an IIS Computer](../debugger/remote-debugging-aspnet-on-a-remote-iis-computer.md). For Azure App Service, see [Remote debug ASP.NET Core on Azure](/learn/modules/dotnet-debug-visual-studio-azure-web-apps/) or, for Visual Studio Enterprise, use the [Snapshot Debugger](../debugger/debug-live-azure-applications.md) (.NET 4.6.1 required).
26+
> To remote debug ASP.NET Core instead, see [Remote Debug ASP.NET Core on an IIS Computer](../debugger/remote-debugging-aspnet-on-a-remote-iis-computer.md). For Azure App Service, see [Remote debug ASP.NET Core on Azure](/training/modules/dotnet-debug-visual-studio-azure-web-apps/) or, for Visual Studio Enterprise, use the [Snapshot Debugger](../debugger/debug-live-azure-applications.md) (.NET 4.6.1 required).
2727
2828
## Prerequisites
2929

@@ -278,4 +278,4 @@ In addition, these ports should already be opened by the ASP.NET installation:
278278

279279
If you want more details on configuring Windows Firewall, see [Configure the Windows Firewall for Remote Debugging](../debugger/configure-the-windows-firewall-for-remote-debugging.md).
280280

281-
3. Create additional rules for the other required ports.
281+
3. Create additional rules for the other required ports.

docs/debugger/remote-debugging-aspnet-on-a-remote-iis-computer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To debug an ASP.NET Core application that has been deployed to IIS, install and
2121

2222
![Remote debugger components](../debugger/media/remote-debugger-aspnet.png "Remote_debugger_components")
2323

24-
This guide explains how to set up and configure a Visual Studio ASP.NET Core, deploy it to IIS, and attach the remote debugger from Visual Studio. To remote debug ASP.NET 4.8, see [Remote Debug ASP.NET on an IIS Computer](../debugger/remote-debugging-aspnet-on-a-remote-iis-7-5-computer.md). You can also deploy and debug on IIS using Azure. For Azure App Service, see [Remote debug ASP.NET Core on Azure](/learn/modules/dotnet-debug-visual-studio-azure-web-apps/) or, for Visual Studio Enterprise, use the [Snapshot Debugger](../debugger/debug-live-azure-applications.md) (.NET 4.6.1 required).
24+
This guide explains how to set up and configure a Visual Studio ASP.NET Core, deploy it to IIS, and attach the remote debugger from Visual Studio. To remote debug ASP.NET 4.8, see [Remote Debug ASP.NET on an IIS Computer](../debugger/remote-debugging-aspnet-on-a-remote-iis-7-5-computer.md). You can also deploy and debug on IIS using Azure. For Azure App Service, see [Remote debug ASP.NET Core on Azure](/training/modules/dotnet-debug-visual-studio-azure-web-apps/) or, for Visual Studio Enterprise, use the [Snapshot Debugger](../debugger/debug-live-azure-applications.md) (.NET 4.6.1 required).
2525

2626
## Prerequisites
2727

docs/debugger/remote-debugging-azure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This guide explains how to set up and configure a Visual Studio ASP.NET Core app
2121

2222
For IIS scenarios, Linux is not supported.
2323

24-
To debug IIS on an Azure VM, follow steps in this topic. Using this method, you can use a customized configuration of IIS, but the setup and deployment steps are more complicated. If you don't need to customize IIS for your scenario, you might choose simpler methods to host and debug the app in [Azure App Service](/learn/modules/dotnet-debug-visual-studio-azure-web-apps/) instead.
24+
To debug IIS on an Azure VM, follow steps in this topic. Using this method, you can use a customized configuration of IIS, but the setup and deployment steps are more complicated. If you don't need to customize IIS for your scenario, you might choose simpler methods to host and debug the app in [Azure App Service](/training/modules/dotnet-debug-visual-studio-azure-web-apps/) instead.
2525

2626
For an Azure VM, you must deploy your app from Visual Studio to Azure and you also need to manually install the IIS role and the remote debugger, as shown in the following illustration.
2727

docs/debugger/remote-debugging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ For in-depth instructions on remote debugging, see these topics.
3232

3333
|Scenario|Link|
3434
|-|-|-|
35-
|Azure App Service|[Remote debug ASP.NET Core on Azure](/learn/modules/dotnet-debug-visual-studio-azure-web-apps/) or, for Visual Studio Enterprise, the [Snapshot Debugger](../debugger/debug-live-azure-applications.md)|
35+
|Azure App Service|[Remote debug ASP.NET Core on Azure](/training/modules/dotnet-debug-visual-studio-azure-web-apps/) or, for Visual Studio Enterprise, the [Snapshot Debugger](../debugger/debug-live-azure-applications.md)|
3636
|Azure VM|[Remote debug ASP.NET on an Azure VM](../debugger/remote-debugging-azure.md)|
3737
|Azure Service Fabric|[Debug an Azure Service Fabric application](/azure/service-fabric/service-fabric-debugging-your-application#debug-a-remote-service-fabric-application)|
3838
|ASP.NET|[Remote debug ASP.NET Core](../debugger/remote-debugging-aspnet-on-a-remote-iis-computer.md) or [Remote Debug ASP.NET](../debugger/remote-debugging-aspnet-on-a-remote-iis-7-5-computer.md)|
@@ -136,4 +136,4 @@ For debugging in ASP.NET and other server environments, you must either run the
136136
- [Configure the Windows Firewall for Remote Debugging](../debugger/configure-the-windows-firewall-for-remote-debugging.md)
137137
- [Remote Debugger Port Assignments](../debugger/remote-debugger-port-assignments.md)
138138
- [Remote Debugging ASP.NET Core on a Remote IIS Computer](../debugger/remote-debugging-aspnet-on-a-remote-iis-computer.md)
139-
- [Remote Debugging Errors and Troubleshooting](../debugger/remote-debugging-errors-and-troubleshooting.md)
139+
- [Remote Debugging Errors and Troubleshooting](../debugger/remote-debugging-errors-and-troubleshooting.md)

docs/debugger/unable-to-connect-to-the-microsoft-visual-studio-remote-debugging-monitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ If these values are correct and the message mentions **Windows Authentication**
6969

7070
## <a name="connection_terminated"></a> Connection with the remote endpoint was terminated
7171

72-
If you are debugging an Azure App Service app, try following instructions in [Remote debug ASP.NET Core on Azure](/learn/modules/dotnet-debug-visual-studio-azure-web-apps/) to connect to Azure App Service.
72+
If you are debugging an Azure App Service app, try following instructions in [Remote debug ASP.NET Core on Azure](/training/modules/dotnet-debug-visual-studio-azure-web-apps/) to connect to Azure App Service.
7373

7474
If you are using **Attach to Process** to debug:
7575

docs/deployment/building-clickonce-applications-from-the-command-line.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Once you have the publish profile created, you can provide the pubxml file as a
9191

9292
## Publish properties
9393

94-
When you publish the application in the above procedures, the following properties are inserted into your project file by the Publish Wizard or in the publish profile file for .NET Core 3.1, or later projects. These properties directly influence how the [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] application is produced.
94+
When you publish the application in the above procedures, the following properties are inserted into your project file by the Publish Wizard or in the publish profile file for .NET projects (.NET Core 3.1, .NET 5, and later). These properties directly influence how the [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] application is produced.
9595

9696
In *CmdLineDemo.vbproj* / *CmdLineDemo.csproj*:
9797

@@ -121,16 +121,16 @@ Once you have the publish profile created, you can provide the pubxml file as a
121121
msbuild /target:publish /property:BootstrapperEnabled=false
122122
```
123123

124-
For .NET Core 3.1, or later, projects these settings are provided in the pubxml file.
124+
For .NET projects (.NET Core 3.1, .NET 5, and later), these settings are provided in the pubxml file.
125125

126126
Publishing properties are controlled in [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] from the **Publish**, **Security**, and **Signing** property pages of the **Project Designer**. Below is a description of the publishing properties, along with an indication of how each is set in the various property pages of the application designer:
127127

128128
> [!NOTE]
129-
> For .NET Windows desktop projects, these settings are now found in the Publish Wizard
129+
> For .NET projects, these settings are now found in the Publish tool.
130130
131131
- `AssemblyOriginatorKeyFile` determines the key file used to sign your [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] application manifests. This same key may also be used to assign a strong name to your assemblies. This property is set on the **Signing** page of the **Project Designer**.
132132

133-
For .NET windows applications, this setting remains in the project file
133+
For .NET windows applications, this setting remains in the project file.
134134

135135
The following properties are set on the **Security** page:
136136

@@ -139,7 +139,7 @@ For .NET windows applications, this setting remains in the project file
139139
- **TargetZone** determines the level of trust to be emitted into your [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] application manifest. Possible values are "Internet", "LocalIntranet", and "Custom". Internet and LocalIntranet will cause a default permission set to be emitted into your [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] application manifest. LocalIntranet is the default, and it basically means full trust. Custom specifies that only the permissions explicitly specified in the base *app.manifest* file are to be emitted into the [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] application manifest. The *app.manifest* file is a partial manifest file that contains just the trust information definitions. It is a hidden file, automatically added to your project when you configure permissions on the **Security** page.
140140

141141
> [!NOTE]
142-
> For .NET Core 3.1, or later, Windows desktop projects, these Security settings are not supported.
142+
> For .NET projects, these Security settings are not supported.
143143
144144
The following properties are set on the **Publish** page:
145145

@@ -161,15 +161,15 @@ For .NET windows applications, this setting remains in the project file
161161

162162
- `UpdateMode` specifies either Foreground updates or Background updates.
163163

164-
For .NET Core 3.1, or later, projects, Background is not supported.
164+
For .NET projects (.NET Core 3.1, .NET 5, and later), Background is not supported.
165165

166166
- `UpdateInterval` specifies how frequently the application should check for updates.
167167

168-
For .NET Core 3.1, or later, this setting is not supported.
168+
For .NET projects, this setting is not supported.
169169

170170
- `UpdateIntervalUnits` specifies whether the `UpdateInterval` value is in units of hours, days, or weeks.
171171

172-
For .NET Core 3.1, or later, this setting is not supported.
172+
For .NET projects, this setting is not supported.
173173

174174
- `UpdateUrl` (not shown) is the location from which the application will receive updates. If specified, this value is inserted into the application manifest.
175175

docs/deployment/choosing-a-clickonce-deployment-strategy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ There are three different strategies for deploying a [!INCLUDE[ndptecclick](../d
4242

4343
To enable this deployment strategy in [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)], click **From the Web** or **From a UNC path or file share** on the **How Installed** page of the Publish Wizard.
4444

45+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-publish-tool.md)]
46+
4547
This is the default deployment strategy.
4648

4749
## Start the application from the Web or a network share

docs/deployment/choosing-a-clickonce-update-strategy.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ ms.workload:
7171
</subscription>
7272
```
7373
> [!NOTE]
74-
> For .NET 3.1 and newer applications, checking updates before the application starts is the only update option supported.
74+
> For .NET Core 3.1 and .NET 5 and newer applications, checking updates before the application starts is the only update option supported.
7575
7676
## Make updates required
7777
There may be occasions when you want to require users to run an updated version of your application. For example, you might make a change to an external resource such as a Web service that would prevent the earlier version of your application from working correctly. In this case, you would want to mark your update as required and prevent users from running the earlier version.
@@ -96,6 +96,8 @@ ms.workload:
9696

9797
For example, you may want to check each time the application runs, or one time a week, or one time a month. If a network connection is not present at the specified time, the update check is performed the next time that the application runs.
9898

99+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-feature-unsupported.md)]
100+
99101
## Provide a user interface for updates
100102
When using this strategy, the application developer provides a user interface that enables the user to choose when or how often the application will check for updates. For example, you might provide a "Check for Updates Now" command, or an "Update Settings" dialog box that has choices for different update intervals. The [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] deployment APIs provide a framework for programming your own update user interface. For more information, see the <xref:System.Deployment.Application> namespace.
101103

docs/deployment/clickonce-and-application-settings.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Application settings for Windows Forms makes it easy to create, store, and maint
2828

2929
Application settings consumes two files: *\<app>.exe.config* and *user.config*, where *app* is the name of your Windows Forms application. *user.config* is created on the client the first time your application stores user-scoped settings. *\<app>.exe.config*, by contrast, will exist prior to deployment if you define default values for settings. Visual Studio will include this file automatically when you use its **Publish** command. If you create your ClickOnce application using *Mage.exe* or *MageUI.exe*, you must make sure this file is included with your application's other files when you populate your application manifest.
3030

31+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-dotnetmage-exe.md)]
32+
3133
In a Windows Forms application not deployed using ClickOnce, an application's *\<app>.exe.config* file is stored in the application directory, while the *user.config* file is stored in the user's **Documents and Settings** folder. In a ClickOnce application, *\<app>.exe.config* lives in the application directory inside of the ClickOnce application cache, and *user.config* lives in the ClickOnce data directory for that application.
3234

3335
Regardless of how you deploy your application, application settings ensures safe read access to *\<app>.exe.config*, and safe read/write access to *user.config*.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: ClickOnce for .NET 5 and later on Windows
3+
description: "Learn about differences between ClickOnce for .NET Core 3.1, .NET 5 and later versus ClickOnce for .NET Framework."
4+
ms.date: 09/14/2022
5+
ms.topic: how-to
6+
helpviewer_keywords:
7+
- "deployment, ClickOnce for .NET 5+"
8+
author: mikejo5000
9+
ms.author: mikejo
10+
manager: jmartens
11+
ms.technology: vs-ide-deployment
12+
monikerRange: '>= vs-2019'
13+
ms.workload:
14+
- "multiple"
15+
---
16+
# ClickOnce for .NET on Windows
17+
18+
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
19+
20+
This article describes the differences between ClickOnce for .NET Core 3.1, .NET 5, and later, versus ClickOnce for .NET Framework.
21+
22+
## Publish tool
23+
24+
Starting in Visual Studio 2019, ClickOnce for .NET Core 3.1 and .NET 5 or later uses the Publish tool instead of the Publish Wizard and properties pages. The Publish tool creates a *.pubxml* file, called a *publish profile*. Most of the properties previously available in the wizard are available to configure in the Publish tool. For detailed instructions, see [Deploy a .NET Windows application using ClickOnce](../deployment/quickstart-deploy-using-clickonce-folder.md).
25+
26+
## MSBUILD
27+
28+
For building from the command line using MSBUILD, you need to specify the *.pubxml* file. For more information, see [Build .NET ClickOnce applications from the command line](../deployment/building-clickonce-applications-from-the-command-line.md#build-net-clickonce-applications-from-the-command-line).
29+
30+
## ApplicationDeployment class
31+
32+
In .NET Core 3.1 and .NET 5 and later, you don't have programmatic access to the <xref:System.Deployment.Application.ApplicationDeployment> class or to other APIs in the <xref:System.Deployment.Application> namespace.
33+
34+
## Mage.exe
35+
36+
In .NET Core 3.1 and .NET 5 and later, use *dotnetmage.exe* instead of [Mage.exe](../deployment/clickonce-security-and-deployment.md#clickonce-tools) to create the ClickOnce deployment.
37+
38+
## Unsupported Publish properties on .NET Core 3.1 and .NET 5 and later
39+
40+
Security settings
41+
42+
- [Enable ClickOnce Security Settings](../deployment/code-access-security-for-clickonce-applications.md) (Code access security)
43+
- [TargetZone](../deployment/securing-clickonce-applications.md#zones)
44+
45+
Update settings
46+
47+
- [UpdateInterval](../deployment/choosing-a-clickonce-update-strategy.md#specify-update-intervals)
48+
- [UpdateIntervalUnits](../deployment/choosing-a-clickonce-update-strategy.md#specify-update-intervals)
49+
- [UpdateMode > Background](../deployment/building-clickonce-applications-from-the-command-line.md#publish-properties)

0 commit comments

Comments
 (0)