Share via


ClickOnce OnDemand Deployment Technology Sample

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

This sample demonstrates ClickOnce application deployment using classes in the System.Deployment.Application namespace.

For information about using the samples, see the following topics:

To build the sample using the command prompt

  1. Open a Command Prompt window and navigate to the \CS subdirectory under the OnDemand directory. For information about required settings and the SDK Command Prompt, see How to: Set Sample Settings.

  2. Type msbuild OnDemand.sln at the command line.

To build the sample using Visual Studio

  1. Open Windows Explorer and navigate to the \CS subdirectory under the OnDemand directory.

  2. Double-click OnDemand.sln to open the file in Visual Studio.

  3. On the Build menu, click Build Solution.

To run the sample

  1. Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer.

  2. Type OnDemand.exe at the command line, or double-click the icon for OnDemand.exe to launch it from Windows Explorer.

Requirements

.NET Framework Version: 2.0

Remarks

To use this sample, the application must be deployed through ClickOnce. You can do this using the Publish Solution menu option or the MageUI.exe (Manifest Generation and Editing Tool, Graphical Client) that is provided with the Windows Software Development Kit (SDK). Both will generate manifest files and publish the project to the Web server you choose. To run the application, you can click the link that appears on the generated Web page.

As this sample demonstrates downloading files, you might want to add some large resource files as embedded content in the Order or Customer library project. This step is optional, but it will make the download take longer and will provide a better demonstration of the scenario.

See Also

Reference

MageUI.exe (Manifest Generation and Editing Tool, Graphical Client)

ResourceManager

System.Deployment.Application

System.Windows.Forms

Concepts

ClickOnce Security and Deployment

Publishing ClickOnce Applications