Build for multiple configurations in TFS Build

2019-07-07 17:21发布

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.

2条回答
老娘就宠你
2楼-- · 2019-07-07 17:55

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

enter image description here

enter image description here

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

enter image description here

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

enter image description here

查看更多
小情绪 Triste *
3楼-- · 2019-07-07 17:59

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...

查看更多
登录 后发表回答