3

Is something like this possible, to build the solution with two configurations at the same time?

?

enter image description here

Toruk Makto
  • 51
  • 1
  • 6

3 Answers3

1

Yes, you need go to the Agent Job options -> Parallelism -> Multi-configuration:

enter image description here

In the build task you put the same variable in the build configuration.

Now the build will be executed twice, one with release configuration and one with debug.

Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114
1

The Multiplier varaibale has to be supplied without the $ and parenthesis ()

"Under the agent job of the assigned task, on the Parallelism tab, select Multi-configuration and specify the Multipliers separated by commas. For example: BuildConfiguration, BuildPlatform"

https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/build/visual-studio-build?view=azure-devops#how-do-i-build-multiple-configurations-for-multiple-platforms

Toruk Makto
  • 51
  • 1
  • 6
  • When you don't use a variable you don't need `$()` but if you store the `BuildConfiguration, BuildPlatform` in a variable you can put it in the multi-configuration with a variable format `$()` – Shayki Abramczyk Jun 03 '20 at 14:03
1

Multipliers in the multi-configuration build should not be a variable. It should be buildConfiguration [rather than $(buildConfiguration)]and this can be defined as the variable in the variable section with different configurations.

buildConfiguration = Debug, Release
Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77