Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Team Foundation Build choose which version of Visual Studio to build with?

Looking to evaluate VS2015, we wish to install it side-by-side with VS2013 on a build PC. Our builds are run using Team Foundation Build and I can't see how a build will decide what version of VS to use when building a given solution. Is it tied to the version of Team Foundation Server being used, or perhaps the newest version will be used by default?

This is only for a quick test to see what happens when we try build our codebase under 2015, we're investigating rather than porting at this time. I'm not really familiar with how VS/TFS/TFSBuild versions fit together.

like image 571
Mr. Boy Avatar asked Dec 19 '22 00:12

Mr. Boy


1 Answers

You can specify which version of msbuild/visual studio to use from the command line. I do this in some of my builds via the MSBuild Arguments section in the Process tab. Here is an example of what I set it to if I want it to use Visual Studio 2013:

/p:VisualStudioVersion=12.0

Also here is another SO post that might help you with the specifics of your question above.

How to launch correct version of Msbuild

like image 137
Cole W Avatar answered Apr 29 '23 03:04

Cole W