问题
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