C# 将我的VS2010定位到.NET4框架时出现问题

C# 将我的VS2010定位到.NET4框架时出现问题,c#,visual-studio,visual-studio-2010,C#,Visual Studio,Visual Studio 2010,我一直收到关于VS2010中框架的以下消息。此外,我不能再添加.NET4作为目标框架。我已尝试安装/修复.NET4框架。它一直告诉我一切正常,但我仍然收到消息,无法将.NET4作为目标或从项目属性的下拉列表中添加它。我不知如何是好。任何建议都将不胜感激 Warning 8 The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install th

我一直收到关于VS2010中框架的以下消息。此外,我不能再添加.NET4作为目标框架。我已尝试安装/修复.NET4框架。它一直告诉我一切正常,但我仍然收到消息,无法将.NET4作为目标或从项目属性的下拉列表中添加它。我不知如何是好。任何建议都将不胜感激

Warning 8   The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

您是否已尝试下载并安装此软件?:

它对其他人起了作用

据我所知,这与.NET framework不同,后者仅用于运行应用程序。

C:\Program Files[(x86)]\Reference Assembly\Microsoft\framework.NETFramework\v4.0

这是VS查找引用程序集的文件夹。它是否包含正确的东西在您的机器上?如果没有,您需要修复VS


<这个文件夹不是.NET 4安装的一部分,所以这就是为什么修复.NET 4对你没有多大帮助。

当你创建一个新项目时,你看到什么框架?这对我来说是有效的,但是为了使SDK安装工作,我首先必须卸载微软Visual C++ 2010重新分配表。