I have been having a bit of trouble getting Build on TFS 2013 to work when using Visual Studio 2015 for the checking in of files. The solution/project that I am working on w
I ended up starting from scratch but this time installing VS 2013 alongside the 2013 TFS installation. Since then all seems fine and building well!
Many other community members have the similar issue, the /p:VisualStudioVersion=14.0 argument doesn't work. You can follow below steps and retry it.
1.Customize the tfs build process template to set ToolPath of the Run MSBuild for Project to target to MSBuild14; and set ToolVersion to "14.0".
2.Check in this build process template and re-queue the build
For detail and screenshot you can reference this link : BuildActivity ignores ToolsVersion