Building Visual Studio 2015 solution using the wrong MSBuild
I have a Visual Studio 2015 solution that I'm trying to set up a build configuration for...

However, whenever I run this config it's using the wrong version of MSBuild...
[11:48:30]Step 2/4: Visual Studio (sln) (1s)
[11:48:30][Step 2/4] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MsBuildBootstrap.exe /workdir:C:\TeamCity\buildAgent\work\40b18dc5fdf4925d /msbuildPath:C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe
[11:48:30][Step 2/4] in directory: C:\TeamCity\buildAgent\work\40b18dc5fdf4925d
[11:48:31][Step 2/4] Process exited with code 1
Notice how it's using the .NET 2.0 version of MSBuild where it should be using the v14.0 MSBuild (Program Files (x86)\MSBuild\14.0\Bin) which is obviously installed since I can build this solution in Visual Studio no problem. I've also tried changing runner type to MSBuild (instead of Visual Studio sln) but that has the same problem. Anyone have any thoughts as to why it's doing this?
Please sign in to leave a comment.