Walkthrough: Deploying a .NET Framework Client Profile Application by using ClickOnce

This walkthrough shows how to deploy a simple .NET Framework Client Profile application by using ClickOnce.

In this walkthrough, you perform the following tasks:

  • Create and configure the WPF project for deployment as a .NET Framework Client Profile application.

  • Deploy the application by using ClickOnce.

When you are finished, you will be able to deploy a .NET Framework Client Profile application by using ClickOnce.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

Prerequisites

You need the following components to complete this walkthrough:

  • Visual Studio 2008 SP1.

Creating and Configuring the WPF project

The first step is to create the project for the WPF application.

To create the WPF project

  1. Create a new WPF Application project in Visual Basic or Visual C# named DemoApplication. For more information, see How to: Create a New WPF Application Project.

    Window1.xaml opens in the WPF Designer.

  2. In the project's property pages, check the Client-only Framework subset check box. For more information, see How to: Configure a .NET Framework Client Profile Application for Deployment.

Deploying the Application

You deploy a .NET Framework Client Profile application by using ClickOnce just like other .NET applications.

To deploy the application

  1. In Solution Explorer, right-click the DemoApplication project and select Properties.

  2. Click the Publish tab.

  3. Click Prerequisites.

    The Prerequisites dialog box opens.

  4. In the Choose which prerequisites to install section, check .NET Framework Client Profile.

  5. Uncheck .NET Framework 3.5 and .NET Framework 3.5 SP1 if they are checked.

  6. In the Specify the install location for prerequisites section, leave the default Download prerequisites from the component vendor's web site option selected.

    This option specifies to download the .NET Client Profile from Microsoft's Web site.

  7. Click OK to close the dialog box.

  8. Follow the steps to publish the application by using ClickOnce. For more information, see Publish Wizard

    Note

    Administrator permissions are required to install the .NET Framework Client Profile.

Next Steps

See Also

Tasks

How to: Create or Add a Setup Project

Walkthrough: Deploying a .NET Framework Client Profile Application by using Windows Installer

Concepts

.NET Framework Client Profile

.NET Framework Client Profile Deployment Configuration Schema

Reference

<supportedRuntime> Element