Search code examples
tfstfsbuild

Build for multiple configurations in TFS Build


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.


Solution

  • 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