无法在 Visual Studio 项目属性中选择 .NET Framework 4.6.1

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/36769658/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 09:47:03  来源:igfitidea点击:

Can't select .NET Framework 4.6.1 in Visual Studio Project properties

.netvisual-studiovisual-studio-2015.net-4.6.1

提问by Ozkan

I installed .NET Framework 4.6.1 using this url: http://www.microsoft.com/en-us/download/details.aspx?id=49981

我使用以下网址安装了 .NET Framework 4.6.1: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

但是当我打开 Visual Studio (2015) 项目时,我无法选择版本 4.6.1

See image:

见图片:

enter image description here

在此处输入图片说明

Why I can't choose 4.6.1 which I installed?

为什么我不能选择我安装的 4.6.1?

回答by Mihail Shishkov

go to http://getdotnet.azurewebsites.net/target-dotnet-platforms.htmlhttps://www.microsoft.com/net/targeting

转到http://getdotnet.azurewebsites.net/target-dotnet-platforms.htmlhttps://www.microsoft.com/net/targeting

download and istall .NET Framework 4.6.1 Targeting Pack

下载并安装 .NET Framework 4.6.1 Targeting Pack

enter image description here

在此处输入图片说明

I'll then recommend using an extension called Target Framework Migratoryou can download it from here https://visualstudiogallery.msdn.microsoft.com/47bded90-80d8-42af-bc35-4736fdd8cd13or get it through tools->extension and updates

然后我会建议使用一个名为Target Framework Migrator你可以从这里下载它的扩展https://visualstudiogallery.msdn.microsoft.com/47bded90-80d8-42af-bc35-4736fdd8cd13或通过工具->扩展和更新获取它

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 Migratoravoids this problem and you can upgrade all the projects in the solution at once.

请注意,如果您使用 Visual Studio 中的下拉菜单将目标框架更改为 4.6.1,您可能会遇到 VS 挂起Target Framework Migrator大约一分钟左右的情况,使用可避免此问题,您可以一次升级解决方案中的所有项目。

Also 4.6.1 comes preinstalled with Visual Studio 2015 Update 2

此外,4.6.1 预装了 Visual Studio 2015 Update 2

Update : Make sure to install Developer Pack after .NET Framework installation as depicted in below image.

更新:确保在 .NET Framework 安装后安装 Developer Pack,如下图所示。

enter image description here

在此处输入图片说明