Build for multiple configurations in TFS Build

别等时光非礼了梦想. 提交于 2020-01-15 05:15:08

问题


Is it possible to make TFS Build 2017 to build binaries for all this configuration combinations:

  • VS2015, VS2017
  • Win32, x64
  • Debug, Release

Do I have to make a build step for each of this combinations, or can I use some sort of magic to do everything in a simple way.


回答1:


You need to enable Multi-configuration in Options tab of build definition. Article: How do I build multiple configurations for multiple platforms?

After that, it will split configurations to multiple builds during the build.

For different vs versions, you need to add another step/task and select corresponding vs version.




回答2:


You can specify the configurations that you want to build right on the compilation build step. Fill out the "configurations" text box with "release, debug" and the platform with "x86, x64".

You will need two steps for Visual Studio version...



来源:https://stackoverflow.com/questions/41261072/build-for-multiple-configurations-in-tfs-build

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!