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.