.net - 未找到框架 ".NETFramework,Version=v4.6.2"的引用程序集

标签 .net visual-studio-2017

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

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 但它仍然给出相同的错误。

有什么想法吗?

最佳答案

Windows -> 搜索 -> Visual Studio 安装程序 -> 修改 -> 各个组件并检查正确的版本

关于.net - 未找到框架 ".NETFramework,Version=v4.6.2"的引用程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44548780/

相关文章:

.net - .net SqlCommand.ExecuteReader 是否关闭连接?

.net - 重新使用 HttpClient 但每个请求具有不同的超时设置?

VS 中的 C++ 17 导致变量(重新)评估错误,这在 C++14 中不存在

asp.net - 尽管启用了 SSL,但获取 "Firefox can’ t 建立与本地主机服务器的连接

.net - 如何在运行时向类型解析添加额外的逻辑?

c# - ApplicationBase 之外的 PrivateBinPath

c# - 如何将文件解压缩到 .NET 内存流?

c# - 如何创建 .tfignore 文件?

visual-studio - AWS Explorer 在 Microsoft Visual Studio 2017(社区版)中不可见

winforms - 无法转换类型为 'CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass' 的 COM 对象