ClickOnce deployment samples and walkthroughs
This section contains sample applications, example code, and step-by-step walkthroughs that illustrate the syntax, structure, and techniques used to deploy Windows Forms, WPF, and console applications.
The sample code is intended for instructional purposes, and should not be used in deployed solutions without modifications. In particular, security must be taken into greater consideration.
ClickOnce deployment
Topic | Description |
---|---|
Deploy a ClickOnce application manually | Explains how to use .NET Framework utilities to deploy your ClickOnce application. |
Download assemblies on demand with the ClickOnce deployment API | Demonstrates how to mark certain assemblies in your application as "optional," and how to download them using classes in the System.Deployment.Application namespace. |
Download assemblies on demand with the ClickOnce deployment API using the designer | Explains how to download application assemblies only when they are first used by the application. |
Note
The ApplicationDeployment class and APIs in the System.Deployment.Application namespace are not supported in .NET Core and .NET 5 and later versions. In .NET 7, a new method of accessing application deployment properties is supported. For more information, see Access ClickOnce deployment properties in .NET. .NET 7 does not support the equivalent of ApplicationDeployment methods.
Related content
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for