We use TFS 2015 as our build server for continuous integration with xaml build definitions. TfvcTemplate12.xaml is the build process template that we are using. When visual studio 2015 came out, we updated out build templates by setting the MSBuild arguments to
/p:VisualStudioVersion=14.0
After doing so, the build server was successfully able to build projects with C# 6 features. Now that Visual Studio 2017 has been released, along with C# 7, I thought I could simply install visual studio 2017 on the build server and update the MSBuild argument to use v15.0. This doesn't seem to work, the build agent still uses MSBuild v14.0 which cannot compile new features in C# 7. In a further attempt, I tried setting the tools version to 15.0
/tv:15.0
But that didn't work either. The build fails with a very generic error message and nothing useful to help me figure this out. Has anyone gotten this to work?
Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException)
Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)