7

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?

2

2 Answers 2

12

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\

-10

Install VS 2013 on your build server.

3
  • Thanks. its a buil server VS 2013 issue. Thanks Commented Feb 17, 2014 at 16:20
  • 17
    You shouldn't need to install Visual Studio on a build server. Commented Mar 4, 2015 at 21:38
  • 7
    Yes, this can be done. You can also build and deploy directly from your development machine. Should you? No, not really. Commented Sep 15, 2015 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.