Problem:
When I try to build debug and release at the same time I get the following error:
The specified solution configuration "release, debug|any cpu" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration.
Solution:
Enable the Multi-configuration option.

Explanation:
By default the Multi-configuration option is disabled. To build multiple configurations at once, you actually have to do more than just check the box. First you need to update the BuildConfiguration variable to a comma-delimited string of configurations.
- Select the build
- Click the Edit link
- Click the Variables tab
Field | Value |
BuildConfiguration | release,debug |
With the build configuration updated, you can now enable the Multi-configuration option.
- Click the Options tab
- Check the Multi-configuration checkbox
Field | Value |
Multipliers | BuildConfiguration |
- Click Save
Now when you queue a new build, both configurations will build.
