在一台服务器上用msbuild编译项目时,出现这样的警告:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644:
未找到框架“.NETFramework,Version=v4.5”的引用程序集。若要解决此问题,请安装此框架版本的 SDK 或 Targeting Pack,或将应用程序的目标重新指向已装有 SDK 或 Targeting Pack 的框架版本。请注意,将从全局程序集缓存(GAC)解析程序集,并将使用这些程序集替换引用程序集。因此,程序集的目标可能未正确指向您所预期的框架。
英文版提示:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (983): The reference assemblies for framework ".NETFramework,Version=v4.5" 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.
用Visual Studio 2012 Express打开项目时出现提示:
而服务器上已经安装了.NET Framework 4.5:
这个问题如何解决?
ITMISS
浏览 2845回答 30
30回答
蓝山帝景
下载Windows SDK,安装 .NET Framework 4.5 Software Development Kit,问题解决