How To Change Or Modify The Target .Net Framework In Visual Studio 2010
In Visual Studio 2010:
- Right-click on your project
- Select Properties
- Select the Application tab
- Change the Target Framework to the desired .Net framework
If The Framework Is Not Found On The List:
- In Solution Explorer, select your project. Right Click, On the menu, choose Unload project.
- locate the entry for the target Framework version. For example, if your project is designed to use the .NET Framework 4.5,
locate<TargetFrameworkVersion>
v4.5</TargetFrameworkVersion>
Change the value to the Framework version you want, such as v4.5 or v4.6.
This can be done Immediately After<TargetFrameworkVersion>
. - In Solution Explorer, Right Click On your project and then choose Reload Project.
To verify the change, in Solution Explorer, :
- Right-click on your project
- Select Properties
- Select the Application tab.
- Verify that .NET Target Framework Version shows the recently changed Framework version.