框架“ .NETFramework,Version = v4.6.2”的参考程序集找不到 [英] The reference assemblies for framework ".NETFramework,Version=v4.6.2" were not found

查看:2555
本文介绍了框架“ .NETFramework,Version = v4.6.2”的参考程序集找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试编译解决方案时,出现以下构建错误:

When trying to compile a solution, I get the following build error:


错误MSB3644框架
的参考程序集找不到 .NETFramework,Version = v4.6.2。要解决此问题,
为此框架版本安装SDK或Targeting Pack,或者
将您的应用程序重新定位到您为
安装了SDK或Targeting Pack的框架版本。请注意,程序集将从全局程序集缓存(GAC)中解析
,并将在引用程序集的
中使用。因此,您的程序集可能未正确定位到想要的框架

C:\RPR\Dev\Libraries\Common\Common.csproj C:\Program Files
(x86)\Microsoft Visual
Studio\2017\ Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 1111

Error MSB3644 The reference assemblies for framework ".NETFramework,Version=v4.6.2" 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. C:\RPR\Dev\Libraries\Common\Common.csproj C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 1111

我尝试安装。 NET Framework 4.6.2 SDK和4.6 Targeting Pack,但是我都已经安装了这两个错误。我也尝试安装Visual Studio 2017,但仍然会出现相同的错误。

I've tried installing the .NET Framework 4.6.2 SDK, as well as the 4.6 Targeting Pack, however both error that I already have it installed. I also tried installing Visual Studio 2017 but it still gives the same error.

有什么想法吗?

推荐答案

事实证明,我已经安装了.NET Framework v4.6.2,而不是4.6.2的Developer Pack。

It turns out that I had installed the .NET Framework v4.6.2, not the Developer Pack for 4.6.2. Doh!

https://www.microsoft.com/zh-cn/download/details.aspx?id=53321

这篇关于框架“ .NETFramework,Version = v4.6.2”的参考程序集找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆