0
votes

We have TFS 2013 on one server and have Visual Studio 2013 and Visual Studio 2017 together on another server. In the past, we built all of our applications with VS2013 but now some applications have been upgraded so we would like those to be built with VS2017.

How can I modify the build definition / template in TFS 2013 to build either with VS2013 or VS2017? We have tried changing some of the MSBuild's arguments but no luck.

Thank you.

1
try to change the toolversion to point the vs 2013 E.g, msbuild someproj.proj /tv:12.0 /p:Configuration=Debug See hoe the toolversion works, and it's order or precedence - Jayendran

1 Answers

0
votes

I think you have to create the new build definition for VS 2017. Try next steps:

  1. Install ms build for VS 2017 (Build Tools for Visual Studio 2017)
  2. Copy existing XAML process for your build through copy on version control or through creation of a new build definition Copying build process template or reuse exsisting
  3. Update XAML process template to use the new ms build path (%programfiles(x86)%\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin). Example you may find here: How does Team Foundation Build choose which version of Visual Studio to build with?