71559

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

Question:

<strong>I am getting below error, while execute build in TFS 2010:</strong>

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?

Answer1:

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\

Answer2:

Install VS 2013 on your build server.

Recommend

  • Add Plugin DLL in MVC 4 Website after publish
  • Edit VSTS Wiki page via VSTS API
  • Extracting a string between 2 chracters using python [duplicate]
  • decompile assembly into project
  • WatiN ie9 confirm dialog is not working [duplicate]
  • How to do String.Copy in .net core?
  • C# Using Microsoft.Toolkit.Win32.UI.Controls in .NET Framework 4.6.1 - Web Browser Control Upgrade
  • Can you force MonoTouch to include an unreferenced assembly in its static compilation?
  • C# How to add my dll to .Net Framework Component List
  • How to run xUnit 2.1.0-beta-* for DNX projects with ReSharper
  • Find code that depends on .NET 3.5 SP1
  • Could not install package 'Microsoft.Owin.Security 2.0.1'
  • Dependency Injection and Code Obfuscation
  • ASPNetCore MVC Routing Let Server Handle Specific Route
  • jquery validation - waiting for remote check to complete
  • Cannot access Public method in Web Control's Page_Load event
  • OSX - always hide certain files
  • How to use jQuery's $.post() method with async/await and typescript
  • Compiling dlib on OS X
  • Overlapping controls in Windows XP
  • Python pickle not one-to-one: different pickles give same object
  • how does System.Web.HttpRequest::PathInfo work?
  • Cannot upload to OneDrive using the new SDK
  • Scala multiline string placeholder
  • How to generate and display a QR Code in ionic 2
  • Sonar maven jacoco code coverage for Multimodule project
  • Does Mobilefirst provide a provision to access web services directly?
  • zope_i18n_compile_mo_files doesn't work on a Zeo configuration
  • How do I exclude a dependency in provided scope when running in Maven test scope?
  • Make VS2015 use angular-cli ng at build time in a .NET project
  • Setting up SourceTree to merge unity3d scenes with UnityYAMLMerge
  • Unity3D & Android: Difference between “UnityMain” and “main” threads?
  • When to use `image` and when to use `Matrix` in Emgu CV?
  • Exchange data b/w iOS devices using Bluetooth 4.0
  • Uncaught Error: Could not find module `ember-load-initializers`
  • SSO with signing and signature validation doesn't work
  • Deserializing XML into class C#
  • How to include full .NET prerequisite for Wix Burn installer
  • costura.fody for a dll that references another dll
  • jQuery Masonry / Isotope and fluid images: Momentary overlap on window resize