问题描述
在TFS 2010中执行构建时,我遇到了以下错误:
C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Microsoft.Common.targets:找不到框架".NETFramework,Version = v4.5"的参考程序集.要解决此问题,请为此框架版本安装SDK或Targeting Pack,或将您的应用程序重新定位到已为其安装SDK或Targeting Pack的框架版本.请注意,程序集将从全局程序集缓存(GAC)中解析,并将代替参考程序集.因此,您的程序集可能未正确定位到您想要的框架.
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets: 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.
请提出建议?
推荐答案
安装SDK或将以下文件夹中的内容从开发人员机器复制到构建服务器:C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \
Install the SDK or copy the contents of the following folder from a developer machine to the build server: C:\Program Files (x86)\Reference Assemblies\Microsoft\
这篇关于框架".NETFramework,Version = v4.5"的参考程序集在TFS2010中找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!