我正在使用新的VS 2015字符串插值语法(意外字符'$')发生TFS 2013构建错误。我已经修改了构建过程模板的“Run MSBuild for Project”任务,但它仍然没有帮助。TFS 2013构建强制MSBuild使用Visual Studio 2015
- CommandLineArguments:的String.Format( “/ P:SkipInvalidConfigurations =真{0}/TV:14”,MSBuildArguments)
- 刀具路径:“C:\程序文件(x86)\的MSBuild \ 14.0 \宾“
- ToolVersion:”14.0“。
在构建定义中,我还指定了“MSBuild Arguments”= /p:VisualStudioVersion=14.0。
正在编译C#6.0的代码和它的失败在[字符串插值(https://stackoverflow.com/documentation/c%23/24/c-sharp-6-0-features/49/string-interpolation# t = 201702091617220341898),对吗?另外,您是否确信构建机器具有VS 2015和您定义的msbuild版本?只要确定。 – Toomaja
是的,是的。构建机具有VS 2015,我可以成功在构建机器上手动构建。我结束了升级到TfvcTemplate.12.xaml。 – AngieM