Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS Build The reference assemblies for framework ".NETFramework,Version=v4.6" were not found

A TFS 2012 build server with .NET 4.6 installed produces the error message below when trying to build a website targetting .NET 4.6.

The machine has been restarted since the install.

Do I need to somehow tell TFS to favor .NET 4.6?

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (983): The reference assemblies for framework ".NETFramework,Version=v4.6" 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.

like image 772
Kye Avatar asked Sep 11 '15 06:09

Kye


1 Answers

I installed the .NET Framework 4.6 Targeting Pack on the build server and that resolved it for me.

like image 73
mcolegro Avatar answered Nov 10 '22 01:11

mcolegro