reference assemblies for framework “.NETFramework,Version=v4.5” were not found in TFS2010

不问归期 提交于 2019-12-07 02:59:20

问题


I am getting below error, while execute build in TFS 2010:

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.

Please suggest what to do?


回答1:


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\




回答2:


Install VS 2013 on your build server.



来源:https://stackoverflow.com/questions/21784837/reference-assemblies-for-framework-netframework-version-v4-5-were-not-found-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!