How to: Configure a .NET Framework Client Profile Application for Deployment

This topic shows how to configure a .NET Framework Client Profile application for deployment.

By default, your application is specifically targeted for the latest version of the .NET Framework. The following procedure shows how to modify the default settings to target the .NET Framework Client Profile.

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.

Configuring the Project for Deployment

To configure the project for deployment

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

    The Application tab of the project's property pages opens.

  2. If your project is a C# project, check the Client-only Framework subset check box.

    If your project is a Visual Basic project, click the Compile tab and then click Advanced Compile Options.

    The Advanced Compiler Settings dialog box opens.

    At the bottom of the Advanced Compiler Settings dialog box, check the Client-only Framework subset check box.

  3. In Solution Explorer, double-click app.config.

    The new app.config file opens in the XML editor.

    The sku attribute has been added to the <supportedRuntime> element.

    <startup>
    <supportedRuntime version="v2.0.50727" sku="Client"/>
    </startup>
    

    For more information, see <supportedRuntime> Element

  4. To deploy the application by using Windows Installer, see Walkthrough: Deploying a .NET Framework Client Profile Application by using Windows Installer. To deploy the application by using ClickOnce, see Walkthrough: Deploying a .NET Framework Client Profile Application by using ClickOnce

See Also

Tasks

How to: Create or Add a Setup Project

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

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

Concepts

.NET Framework Client Profile

.NET Framework Client Profile Deployment Configuration Schema

Reference

<supportedRuntime> Element

Change History

Date

History

Reason

July 2008

Added new topic.

SP1 feature change.