[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
The following procedures describe how to create a project that targets a specific .NET Framework version, or its profile, and how to change the target .NET Framework version for an existing project.

Create a Project
The following steps show how to create a project that targets a specific .NET Framework version.
To create a project that has a specific .NET Framework target
-
In Visual Studio, on the File menu, click New and then click Project.
-
In the New Project dialog box, select a project type, such as Visual C# Windows.
-
In the box in the corner of the New Project dialog box, select the .NET Framework version you want your project to target, for example, .NET Framework 4.
Note
|
|
Visual Studio 2010 includes only .NET Framework 4.
To target earlier versions of the .NET Framework, you must have the .NET Framework 3.5 SP1 installed.
|
-
Click OK and then continue to create your project.
Note
|
|
The set of available project templates depends on the .NET Framework version you select.
|

Change the Target .NET Framework Version or Profile of an Existing Project
The following steps show how to change the .NET Framework version target of an existing project.
To change the .NET Framework version or profile of a project
-
In Visual Studio, open the project you want to change.
-
Right-click the project in Solution Explorer and then click Properties.
-
In the Project Designer, go to the Target Framework drop-down list.
For Visual Basic projects, click the Compile tab and then click Advanced Compile Options.
The Target Framework list is in the Advanced Compiler Settings Dialog Box (Visual Basic).
For Visual C# projects, the Target Framework list is on the Application tab of the Project Designer.
For more information, see Application Page, Project Designer (C#).
-
In the Target Framework list, click a .NET Framework version, or its profile, that differs from the current one for the project.
The project now targets the new .NET Framework version.
The project will unload and then reload in the integrated development environment (IDE).
Note
|
|
If you change the .NET Framework target version, you may receive error messages if your code contains references to a different version.
To resolve these errors, you must manually modify the references.
|

See Also