ClickOnce OnDemand Deployment Technology Sample
This sample demonstrates ClickOnce application deployment using classes in thenamespace.
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.
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.
.NET Framework Version: 2.0
To use this sample, the application must be deployed through ClickOnce. You can do this using the Publish Solution menu option or thethat is provided with the .NET Framework 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.