How to: Configure a .NET Framework Client Profile Application for Deployment
Updated: July 2008
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.
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.
To configure the project for deployment
In Solution Explorer, right-click the project and select Properties.
The Application tab of the project's property pages opens.
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.
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
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.