问题
I installed .NET Framework 4.6.1 using this url: http://www.microsoft.com/en-us/download/details.aspx?id=49981
But when I open a Visual Studio (2015) Project I can't select version 4.6.1
See image:
Why I can't choose 4.6.1 which I installed?
回答1:
go to http://getdotnet.azurewebsites.net/target-dotnet-platforms.html https://www.microsoft.com/net/targeting
download and istall .NET Framework 4.6.1 Targeting Pack
I'll then recommend using an extension called Target Framework Migrator
you can download it from here https://visualstudiogallery.msdn.microsoft.com/47bded90-80d8-42af-bc35-4736fdd8cd13
or get it through tools->extension and updates
Note that if you change the target framework to 4.6.1 using the dropdown in Visual Studio you may experience VS to hang for like a minute or so where using the Target Framework Migrator
avoids this problem and you can upgrade all the projects in the solution at once.
Also 4.6.1 comes preinstalled with Visual Studio 2015 Update 2
Update : Make sure to install Developer Pack after .NET Framework installation as depicted in below image.
来源:https://stackoverflow.com/questions/36769658/cant-select-net-framework-4-6-1-in-visual-studio-project-properties