简体   繁体   中英

TFS 2013 Build force MSBuild to use Visual Studio 2015

I'm having a TFS 2013 build error with the new VS 2015 string interpolation syntax (Unexpected character '$'). I have modified the "Run MSBuild for Project" task of the build process template like so, but it's still not helping.

  • CommandLineArguments: String.Format("/p:SkipInvalidConfigurations=true {0} /tv:14", MSBuildArguments)
  • ToolPath: "C:\\Program Files (x86)\\MSBuild\\14.0\\Bin"
  • ToolVersion: "14.0".

In the build definition, I also specified the "MSBuild Arguments" = /p:VisualStudioVersion=14.0.

运行MSBuild任务属性

构建定义

For what it's worth, I gave up trying to figure this out and changed the build process template to TfvcTemplate.12.xaml and add this as the MSBuild arguments: /tv:14.0 /p:VisualStudioVersion=14.0 (in the build definition).

I know this won't help if someone can't upgrade to TfvcTemplate.12.xaml though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM