Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 261
user1057221 Avatar asked Feb 14 '14 16:02

user1057221


People also ask

What .NET version do I have?

The version of .NET Framework (4.5 and later) installed on a machine is listed in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full. If the Full subkey is missing, then .NET Framework 4.5 or above isn't installed.


1 Answers

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\

like image 174
Daniel Fisher lennybacon Avatar answered Sep 20 '22 17:09

Daniel Fisher lennybacon