DoomVroom
DoomVroom

Reputation: 327

TFS 2013 won't build a .NET Framework 4.6 project

I am trying to get TFS2013 to build a .NET Framework 4.6 C# project on our build servers. I have installed the build tools and the 4.6 .NET Framework out on the build machine. I can see from the build log that the build server is actually targeting the 4.6 .NET Framework.

Earlier I had issues getting the dll references but those were cleaned up by me installing the 4.6 framework. I even tried installing Visual Studio 2015 on the build server and still it won't build.

I have also tried passing the /p:VisualStudioVersion=14.0 parameter. I am kind of running out of ideas or things to try to get this build working.

Upvotes: 4

Views: 1530

Answers (1)

DoomVroom
DoomVroom

Reputation: 327

I figured out what i needed to do.

To let TFS2013 run builds for 4.6 you need to do the following: Install the 4.6 framework and the Build Tools for 2015.

OR

Install Visual Studio 2015 (which installs the framework and build tools).

Then you can either modify your build template and hard code the build tools for a template. Or the path I choose that was use the argument: /tv:14.0

Upvotes: 4

Related Questions