ClickOnce Deployment Samples and Walkthroughs
This article applies to Visual Studio 2015. If you're looking for Visual Studio 2017 documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2017. Download it here.
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.
|Deploying a ClickOnce Application Manually||Explains how to use .NET Framework utilities to deploy your ClickOnce application.|
|Downloading 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.|
|Downloading 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.|