Toruk Makto
Toruk Makto

Reputation: 51

How to build a solution with multiple build configuration (debug, release) in Azure DevOps build definiton

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

?

enter image description here

Upvotes: 3

Views: 4873

Answers (3)

Hari Eddala
Hari Eddala

Reputation: 11

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

Upvotes: 1

Toruk Makto
Toruk Makto

Reputation: 51

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

Upvotes: 1

Shayki Abramczyk
Shayki Abramczyk

Reputation: 41595

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.

Upvotes: 1

Related Questions