此计算机上已安装 .NET Framework 4.6 或更高版本的更新

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35553641/
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:46:08  来源:igfitidea点击:

.NET Framework 4.6 or a later update is already installed on this computer

.netvisual-studio-2013

提问by Yellow

I am trying to load a Visual Studio solution with .NET v4.6 projects in VS2013, but it tells me that I do not have this installed on my computer.

我正在尝试在 VS2013 中加载带有 .NET v4.6 项目的 Visual Studio 解决方案,但它告诉我我的计算机上没有安装它。

enter image description here

在此处输入图片说明

Which makes sense. So I tried to download and install this, from here.
However, as soon as I fire up the installer, iT says: enter image description here.

这是有道理的。所以我尝试从这里下载并安装它。
但是,一旦我启动安装程序,iT 就会说: 在此处输入图片说明.

So now I'm stuck, because I can't load the project because I need to install something I can't install.

所以现在我卡住了,因为我无法加载项目,因为我需要安装一些我无法安装的东西。

Any ideas as to how to fix this?

关于如何解决这个问题的任何想法?

回答by Lasse V. Karlsen

To develop for .NET 4.6 in Visual Studio 2013 you need to install the targetting pack for 4.6.

要在 Visual Studio 2013 中针对 .NET 4.6 进行开发,您需要安装 4.6 的目标包。

The .NET 4.6 you've got installed is enough to run the programs, but it is not enough for development.

您安装的 .NET 4.6 足以运行程序,但对于开发来说还不够。

So follow the advice of the dialog, download the targetting pack.

所以按照对话框的建议,下载目标包。

Note that what you said you tried to download and install, that wouldn't, was the normal runtime, and as you already know you have this installed. If you select the download option in the dialog it should open the right website, otherwise you should just open this page here (courtesy of @HansPassantin a comment):

请注意,您说您尝试下载和安装的内容是正常的运行时,但您已经知道您已经安装了它。如果您在对话框中选择下载选项,它应该打开正确的网站,否则您应该只在此处打开此页面(@HansPassant在评论中提供):

Microsoft .NET Framework 4.6.1 Developer Pack and Language Packs for Windows 7 SP1, Windows 8, Windows 8.1, Windows 10, Windows Server 2008 R2 SP1, Windows Server 2012 and Windows Server 2012 R2

适用于 Windows 7 SP1、Windows 8、Windows 8.1、Windows 10、Windows Server 2008 R2 SP1、Windows Server 2012 和 Windows Server 2012 R2 的 Microsoft .NET Framework 4.6.1 开发人员包和语言包

回答by Ajay Kotnala

Installing the developer pack version fixed this for me: https://www.microsoft.com/en-us/download/details.aspx?id=53321

安装开发包版本为我解决了这个问题:https: //www.microsoft.com/en-us/download/details.aspx?id=53321