框架“.NETFramework,Version=v4.6.2"的参考程序集没有找到

14

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

问题描述

限时送ChatGPT账号..

在尝试编译解决方案时,我收到以下构建错误:

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:RPRDevLibrariesCommonCommon.csproj C:Program Files(x86)微软视觉Studio2017CommunityMSBuild15.0BinMicrosoft.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:RPRDevLibrariesCommonCommon.csproj C:Program Files (x86)Microsoft Visual Studio2017CommunityMSBuild15.0BinMicrosoft.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 的开发包.呵呵!

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/en-我们/下载/details.aspx?id=53321

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

The End

相关推荐

C# 中的多播委托奇怪行为?
Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)...
2023-11-11 C#/.NET开发问题
6

如何将代表存储在列表中
How to store delegates in a List(如何将代表存储在列表中)...
2023-11-11 C#/.NET开发问题
6

代表如何工作(在后台)?
How delegates work (in the background)?(代表如何工作(在后台)?)...
2023-11-11 C#/.NET开发问题
5

Delegate.CreateDelegate() 和泛型:错误绑定到目标方法
Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)...
2023-11-11 C#/.NET开发问题
14

函数委托与函数
Func Delegate vs Function(函数委托与函数)...
2023-11-11 C#/.NET开发问题
6

具有未知类型的 CreateDelegate
CreateDelegate with unknown types(具有未知类型的 CreateDelegate)...
2023-11-11 C#/.NET开发问题
5