How do I go about changing the version for the targeted version of the .NET Framework from 4.5.1 to 4.5 in Visual Studio 2012?
相关问题
- Resharper 7 on VS2012 ignores assembly redirect in
- Error installing MVVMCross from nuget into a PCL
- Why can't I bind to winproc?
- Getting Sum of an SQL table column until the sum r
- OPENCV linking Error - Win32 & VS2012
相关文章
- Visual Studio Hangs on Loading UI Library
- “Csc.exe” exited with code -1073741819
- Add Fakes Assembly option missing
- Visual Studio wants to build with wrong platform t
- Visual Studio 2012 debug tests keyboard shortcut
- Visual Studio: How to properly build and specify t
- What are skipped tests in visual studio?
- Visual Studio 2012 designer error
You can usually select your desired target framework within the application properties. Your setup may be slightly different, my Visual Studio installation is using the C# development settings by default, and the example image below is from a
WPF
project (on the off chance yours is different).Either right-click on your project in the
Solution Explorer
and selectProperties
->Application
, or selectProperties
from the main toolbar in Visual Studio, and select theApplication
tab. You should be able to select the target framework.If you can't select the particular framework you're after, the issue may be slightly different.
Check the target framework of the project you created. To fix your problem change it to .NET Framework version.
To do this right-click your project and select Properties. On the Compile tab, Click Advance Compile Options... and set the Target Framework dropdown to .NET Framework version.
I fixed it! I right clicked on my project - select Edit Project File - Went and looked for the
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
- then saved and reloaded the project.You need to install the Microsoft .NET Framework x.x.x Developer Pack then only it will be visible under the Target Framework dropdown