We have a build definition in TFS 2015 that have worked fine with Visual Studio 2015 projects and solutions. We have now decided to upgrade to Visual Studio 2017 and thus we would like to target Visual Studio 2017 in the Visual Studio build task. We have installed Visual Studio 2017 on the build agent. Unfortunately the only options available int the Visual Studio build task are 2012, 2013, 2015 and Latest. We have tried latest but it does not find Visual Studio 2017 on the build agent. It won't work with the msbuild task either.
TFS 2015 visual studio build task does not support VS 2017
tfs-2015visual-studio-2017
Related Topic
- Asp.net-core – Visual Studio 2017 install breaks Visual Studio 2015 ASP.NET Core Projects
- Is Visual Studio 2017 backwards compatible with Visual Studio 2015 solutions
- Git – Visual Studio 2017 – Git failed with a fatal error
- Ruby-on-rails – Rails: DoubleRenderError – “Render and/or redirect were called multiple times in this action”
- Unit Tests not discovered in Visual Studio 2017
- How to add Visual Studio 2017 to Team Foundation Server Build Agent
Best Answer
I have a similiar issue and resolved by installing VS2017 in my build agent server and configuring MSBuild to point to my MSBuild 15.0 folder:
On the Advanced options, expand and fill the 'Path to MSBuild' like the image below: