ClickOnce OnDemand Deployment Technology Sample
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
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.
Type msbuild OnDemand.sln at the command line.
To build the sample using Visual Studio
Open Windows Explorer and navigate to the \CS subdirectory under the OnDemand directory.
Double-click OnDemand.sln to open the file in Visual Studio.
On the Build menu, click Build Solution.
To run the sample
Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer.
Type OnDemand.exe at the command line, or double-click the icon for OnDemand.exe to launch it from Windows Explorer.
To use this sample, the application must be deployed through ClickOnce. You can do this using the Publish Solution menu option or the Manifest Generation and Editing Tool, Graphical Client (MageUI.exe) 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.