Skip to content

Commit f324b7d

Browse files
committed
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents 1252055 + 6d9bb12 commit f324b7d

21 files changed

+80
-24
lines changed

docs/debugger/graphics/visual-studio-graphics-diagnostics.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ms.workload:
1919
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
2020
>[!NOTE]
2121
> Visual Studio recommends PIX on Windows for DirectX 12 games. [PIX on Windows](https://aka.ms/PIXonWindows) is a performance tuning and debugging tool that fully supports DirectX 12. [Find out more information](visual-studio-graphics-diagnostics-directx-12.md) or [download here](https://aka.ms/downloadPIX).
22+
> Visual Studio Graphics Diagnostics is not supported on ARM64 Visual Studio
2223
2324
Visual Studio *Graphics Diagnostics* is a set of tools for recording and then analyzing rendering and performance problems in Direct3D apps. Graphics Diagnostics can be used on apps that are running locally on your Windows PC, in a Windows device emulator, or on a remote PC or device.
2425

docs/deployment/accessing-local-and-remote-data-in-clickonce-applications.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Most applications consume or produce data. [!INCLUDE[ndptecclick](../deployment/
5252
5353
After your application has these permissions, it can access the Data Directory by using method calls on classes within the <xref:System.IO>. You can obtain the path of the Data Directory within a Windows Forms [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] application by using the <xref:System.Deployment.Application.ApplicationDeployment.DataDirectory%2A> property defined on the <xref:System.Deployment.Application.ApplicationDeployment.CurrentDeployment%2A> property of <xref:System.Deployment.Application.ApplicationDeployment>. This is the most convenient and recommended way to access your data. The following code example demonstrates how to do this for a text file named *CSV.txt* that you have included in your deployment as a data file.
5454

55+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
56+
5557
### [C#](#tab/csharp)
5658
:::code language="csharp" source="../snippets/csharp/VS_Snippets_Winforms/ClickOnce.OpenDataFile/CS/Form1.cs" id="Snippet1":::
5759

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ ms.workload:
9999
## Provide a user interface for updates
100100
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.
101101

102+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
103+
102104
If your application uses deployment APIs to control its own update logic, you should block update checking as described in "Blocking Update Checking" in the following section.
103105

104106
This strategy works best when you need different update strategies for different users.

docs/deployment/clickonce-deployment-samples-and-walkthroughs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ This section contains sample applications, example code, and step-by-step walkth
3636
|[Download assemblies on demand with the ClickOnce deployment API](../deployment/walkthrough-downloading-assemblies-on-demand-with-the-clickonce-deployment-api.md)|Demonstrates how to mark certain assemblies in your application as "optional," and how to download them using classes in the <xref:System.Deployment.Application> namespace.|
3737
|[Download assemblies on demand with the ClickOnce deployment API using the designer](../deployment/walkthrough-downloading-assemblies-on-demand-with-the-clickonce-deployment-api-using-the-designer.md)|Explains how to download application assemblies only when they are first used by the application.|
3838

39+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
40+
3941
## See also
4042

4143
- [Visual Studio walkthroughs](/previous-versions/szatc41e(v=vs.110))

docs/deployment/clickonce-reference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ The following pages describe the structure of the XML files used to represent Cl
5252

5353
Provides links to reference documentation of the public classes that support ClickOnce within managed code.
5454

55+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
56+
5557
[Publish ClickOnce applications](../deployment/publishing-clickonce-applications.md)
5658

5759
Provides walkthroughs and how-to's that perform ClickOnce tasks.

docs/deployment/debugging-clickonce-applications-that-use-system-deployment-application.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ms.workload:
2424
# Debug ClickOnce applications that use System.Deployment.Application
2525

2626
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
27-
In [!INCLUDE[vs_current_short](../code-quality/includes/vs_current_short_md.md)], [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] deployment allows you to configure how an application is updated. However, if you need to use and customize advanced [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] deployment features, you will need to access the deployment object model provided by <xref:System.Deployment.Application>. You can use the <xref:System.Deployment.Application> APIs for advanced tasks such as:
27+
In [!INCLUDE[vs_current_short](../code-quality/includes/vs_current_short_md.md)], [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] deployment allows you to configure how an application is updated. However, if you need to use and customize advanced [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] deployment features, you'll need to access the deployment object model provided by <xref:System.Deployment.Application>. You can use the <xref:System.Deployment.Application> APIs for advanced tasks such as:
2828

2929
- Creating an "Update Now" option in your application
3030

@@ -38,15 +38,17 @@ In [!INCLUDE[vs_current_short](../code-quality/includes/vs_current_short_md.md)]
3838

3939
The recommended debugging technique is as follows:
4040

41-
1. Before you start, make sure the symbol (.pdb) and source files are archived.
41+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
42+
43+
1. Before you start, make sure the symbol (.pdb) files and source files are archived.
4244

4345
2. Deploy version 1 of the application.
4446

4547
3. Create a new blank solution. From the **File** menu, click **New**, then **Project**. In the **New Project** dialog box, open the **Other Project Types** node, then select the **Visual Studio Solutions** folder. In the **Templates** pane, select **Blank Solution**.
4648

47-
4. Add the archived source location to the properties for this new solution. In **Solution Explorer**, right-click the solution node, then click **Properties**. In the **Property Pages** dialog box, select **Debug Source Files**, then add the directory of the archived source code. Otherwise, the debugger will find the out-of-date source files, since the source file paths are recorded in the .pdb file. If the debugger uses out-of-date source files, you see a message telling you that the source does not match.
49+
4. Add the archived source location to the properties for this new solution. In **Solution Explorer**, right-click the solution node, then click **Properties**. In the **Property Pages** dialog box, select **Debug Source Files**, then add the directory of the archived source code. Otherwise, the debugger will find the out-of-date source files, since the source file paths are recorded in the .pdb file. If the debugger uses out-of-date source files, you see a message telling you that the source doesn't match.
4850

49-
5. Make sure the debugger can find the *.pdb* files. If you have deployed them with your application, the debugger finds them automatically. It always looks next to the assembly in question first. Otherwise, you will need to add the archive path to the **Symbol file (.pdb) locations** (to access this option, from the **Tools** menu, click **Options**, then open the **Debugging** node, and click **Symbols**).
51+
5. Make sure the debugger can find the *.pdb* files. If you've deployed them with your application, the debugger finds them automatically. It always looks next to the assembly in question first. Otherwise, you'll need to add the archive path to the **Symbol file (.pdb) locations** (to access this option, from the **Tools** menu, click **Options**, then open the **Debugging** node, and click **Symbols**).
5052

5153
6. Debug what happens between the `CheckForUpdate` and `Download`/`Update` method calls.
5254

@@ -69,11 +71,11 @@ In [!INCLUDE[vs_current_short](../code-quality/includes/vs_current_short_md.md)]
6971

7072
7. Deploy version 2.
7173

72-
8. Attempt to attach the debugger to the version 1 application as it downloads an update for version 2. Alternatively you can use the `System.Diagnostics.Debugger.Break` method or simply `Stop` in Visual Basic. Of course, you should not leave these method calls in production code.
74+
8. Attempt to attach the debugger to the version 1 application while it downloads an update for version 2. Alternatively, you can use the `System.Diagnostics.Debugger.Break` method or simply `Stop` in Visual Basic. Of course, you should not leave these method calls in production code.
7375

7476
For example, assume you are developing a Windows Forms application, and you have an event handler for this method with the update logic in it. To debug this, simply attach before the button is pressed, then set a breakpoint (make sure that you open the appropriate archived file and set the breakpoint there).
7577

76-
Use the <xref:System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed%2A> property to invoke the <xref:System.Deployment.Application> APIs only when the application is deployed; the APIs should not be invoked during debugging in [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)].
78+
Use the <xref:System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed%2A> property to invoke the <xref:System.Deployment.Application> APIs only when the application is deployed; the APIs shouldn't be invoked during debugging in [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)].
7779

7880
## See also
7981
- <xref:System.Deployment.Application>

docs/deployment/deployment-element-clickonce-deployment.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ Identifies the attributes used for the deployment of updates and exposure to the
104104

105105
To disable checking for updates, remove the `subscription` element. When you specify in the deployment manifest to never scan for updates, you can still manually check for updates by using the <xref:System.Deployment.Application.ApplicationDeployment.CheckForUpdate%2A> method.
106106

107+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
108+
107109
For more information on how deploymentProvider relates to updates, see [Choosing a ClickOnce Update Strategy](../deployment/choosing-a-clickonce-update-strategy.md).
108110

109111
## Examples

docs/deployment/how-clickonce-performs-application-updates.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ ClickOnce uses the file version information specified in an application's deploy
3030

3131
File patching also works for assemblies that are downloaded on demand using the <xref:System.Deployment.Application.ApplicationDeployment.DownloadFileGroup%2A> and <xref:System.Deployment.Application.ApplicationDeployment.DownloadFileGroupAsync%2A> methods.
3232

33+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
34+
3335
If you use Visual Studio to compile your application, it will generate new hash signatures for all files whenever you rebuild the entire project. In this case, all assemblies will be downloaded to the client, although only a few assemblies may have changed.
3436

3537
File patching does not work for files that are marked as data and stored in the data directory. These are always downloaded regardless of the file's hash signature. For more information on the data directory, see [Access local and remote data in ClickOnce applications](../deployment/accessing-local-and-remote-data-in-clickonce-applications.md).

docs/deployment/how-to-check-for-application-updates-programmatically-using-the-clickonce-deployment-api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ ms.workload:
2424
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
2525
ClickOnce provides two ways to update an application once it is deployed. In the first method, you can configure the ClickOnce deployment to check automatically for updates at certain intervals. In the second method, you can write code that uses the <xref:System.Deployment.Application.ApplicationDeployment> class to check for updates based on an event, such as a user request.
2626

27+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
28+
2729
The following procedures show some code for performing a programmatic update and also describe how to configure your ClickOnce deployment to enable programmatic update checks.
2830

2931
In order to update a ClickOnce application programmatically, you must specify a location for updates. This is sometimes referred to as a deployment provider. For more information on setting this property, see [Choose a ClickOnce update strategy](../deployment/choosing-a-clickonce-update-strategy.md).

docs/deployment/how-to-manage-updates-for-a-clickonce-application.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ ms.workload:
3232

3333
You can configure the application to check for updates programmatically based on an event such as a user request. The procedure "To check for updates programmatically" in this topic shows how you would write code that uses the <xref:System.Deployment.Application.ApplicationDeployment> class to check for updates based on an event.
3434

35+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
36+
3537
You can also deploy your application from one location and update it from another. See the procedure "To specify a different update location."
3638

3739
For more information, see [Choosing a ClickOnce Update Strategy](../deployment/choosing-a-clickonce-update-strategy.md).

docs/deployment/how-to-retrieve-query-string-information-in-an-online-clickonce-application.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ The *query string* is the portion of a URL beginning with a question mark (?) th
4747

4848
1. Place the following code in your project. In order for this code to function, you will have to have a reference to System.Web and add `using` or `Imports` directives for System.Web, System.Collections.Specialized, and System.Deployment.Application.
4949

50+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
51+
5052
### [C#](#tab/csharp)
5153
:::code language="csharp" source="../snippets/csharp/VS_Snippets_Winforms/ClickOnceQueryString/CS/Form1.cs" id="Snippet1":::
5254

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Visual Studio .NET 5+ ClickOnce API support
3+
author: mikejo5000
4+
description: Learn about .NET 5+ ClickOnce API support in ClickOnce
5+
ms.author: mikejo
6+
ms.date: 09/12/2022
7+
ms.technology: vs-ide-deployment
8+
ms.topic: include
9+
---
10+
11+
> [!NOTE]
12+
> The <xref:System.Deployment.Application.ApplicationDeployment> class and APIs in the <xref:System.Deployment.Application> namespace are not supported in .NET 5+.

docs/deployment/localizing-clickonce-applications.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ Localization is the process of making your application appropriate for a specifi
6464
## Download satellite assemblies on demand
6565
If you decide to include all satellite assemblies in a single deployment, you can improve performance by using on-demand downloading, which enables you to mark assemblies as optional. The marked assemblies will not be downloaded when the application is installed or updated. You can install the assemblies when you need them by calling the <xref:System.Deployment.Application.ApplicationDeployment.DownloadFileGroup%2A> method on the <xref:System.Deployment.Application.ApplicationDeployment> class.
6666

67+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
68+
6769
Downloading satellite assemblies on demand differs slightly from downloading other types of assemblies on demand. For more information and code examples on how to enable this scenario using the [!INCLUDE[winsdkshort](../debugger/debug-interface-access/includes/winsdkshort_md.md)] tools for [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)], see [Walkthrough: Downloading Satellite Assemblies on Demand with the ClickOnce Deployment API](../deployment/walkthrough-downloading-satellite-assemblies-on-demand-with-the-clickonce-deployment-api.md).
6870

6971
You can also enable this scenario in [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)]. Also see [Walkthrough: Downloading Satellite Assemblies on Demand with the ClickOnce Deployment API Using the Designer](/previous-versions/visualstudio/visual-studio-2012/ms366788(v=vs.110)) or [Walkthrough: Downloading Satellite Assemblies on Demand with the ClickOnce Deployment API Using the Designer](/previous-versions/visualstudio/visual-studio-2013/ms366788(v=vs.120)).

docs/deployment/walkthrough-creating-a-custom-installer-for-a-clickonce-application.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ ms.workload:
2727
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
2828
Any ClickOnce application based on an *.exe* file can be silently installed and updated by a custom installer. A custom installer can implement custom user experience during installation, including custom dialog boxes for security and maintenance operations. To perform installation operations, the custom installer uses the <xref:System.Deployment.Application.InPlaceHostingManager> class. This walkthrough demonstrates how to create a custom installer that silently installs a ClickOnce application.
2929

30+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
31+
3032
## Prerequisites
3133

3234
### To create a custom ClickOnce application installer

docs/deployment/walkthrough-downloading-assemblies-on-demand-with-the-clickonce-deployment-api-using-the-designer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ ms.workload:
2626
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
2727
By default, all the assemblies included in a [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] application are downloaded when the application is first run. However, there might be parts of your application that are used by a small set of the users. In this case, you want to download an assembly only when you create one of its types. The following walkthrough demonstrates how to mark certain assemblies in your application as "optional", and how to download them by using classes in the <xref:System.Deployment.Application> namespace when the common language runtime demands them.
2828

29+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
30+
2931
> [!NOTE]
3032
> Your application will have to run in full trust to use this procedure.
3133

docs/deployment/walkthrough-downloading-assemblies-on-demand-with-the-clickonce-deployment-api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ ms.workload:
2525
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
2626
By default, all of the assemblies included in a [!INCLUDE[ndptecclick](../deployment/includes/ndptecclick_md.md)] application are downloaded when the application is first run. However, you may have parts of your application that are used by a small set of your users. In this case, you want to download an assembly only when you create one of its types. The following walkthrough demonstrates how to mark certain assemblies in your application as "optional", and how to download them by using classes in the <xref:System.Deployment.Application> namespace when the common language runtime (CLR) demands them.
2727

28+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
29+
2830
> [!NOTE]
2931
> Your application will have to run in full trust to use this procedure.
3032

docs/deployment/walkthrough-downloading-satellite-assemblies-on-demand-with-the-clickonce-deployment-api-using-the-designer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Windows Forms applications can be configured for multiple cultures through the u
3333

3434
This walkthrough demonstrates how to mark your satellite assemblies as optional, and download only the assembly a client machine needs for its current culture settings.
3535

36+
[!INCLUDE[ndptecclick](../deployment/includes/dotnet-support-application-deployment-api.md)]
37+
3638
> [!NOTE]
3739
> For testing purposes, the following code examples programmatically set the culture to `ja-JP`. See the "Next Steps" section later in this topic for information on how to adjust this code for a production environment.
3840

0 commit comments

Comments
 (0)