We recently upgraded to TFS 2015 from 2010. As a result of this upgrade, we wanted to start using C# 6
syntax in our projects, but whenever we do, the build fails due to syntax errors. The build agents/controllers are also from the TFS 2015 installer (it's a whole new set of servers)
Our builds are using the TfvcTemplate.12.xaml
Process template, which apparently is the TFS2013 xaml build template.
According to this answer, you can modify the template to set the ToolsVersion appropriately, but our template does not have a Run MSBuild for Project
item, it has a Run MSBuild
activity, which does not have the indicated properties.
I've also tried setting the tv:14.0
and /p:VisualStudioVersion=14.0
arguments on MSBuild from the Build Definition from this answer, but this also does not resolve the issue.
What do we need to do in order to get the build to accept C# 6
syntax?