Azure-devops-docs: Build fails, specified configuration is invalid

Created on 28 Jun 2018  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

I tried building this with the following BuildPlatform's:
x86, x64
Any CPU
<blank>

and they all failed with a message like:

D:a1\s\cpp-sample.sln.metaproj (0, 0)
D:a1\s\cpp-sample.sln.metaproj(0,0): Error MSB4126: The specified solution configuration "debug, release|x64" 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.

I also could not find Multi-Configuration on the Options tab, see 750, so I'm not sure why that would be closed. I'm also not seeing Multi-Configuration on any task as suggested in 749


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 devopprod support-request

Most helpful comment

This is still an issue - encountered it today even though the variable build.configuration is set in variables - seems like this would be low hanging fruit to implement and fix?

All 5 comments

Not to sure if this helps, but I've found that the msbuild task on the agents need you to explicitly set properties. For example, when I was building on my local machine, I was able to omit specifying my platform and it would use the default, but on the agent's I had to explicitly set /p:platform=x64 to avoid errors.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Please accept our apology for the significant delay in addressing this issue.

It looks like you're working through an issue with the product itself, rather than an issue with the documentation. Here are a few options where you might consider asking your question:

This is still an issue - encountered it today even though the variable build.configuration is set in variables - seems like this would be low hanging fruit to implement and fix?

Had this for two reasons:

  • Forgot to commit the .sln file
  • Compiling against the wrong branch when running the pipeline. Change the drop down to the right branch.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

adnanebrahimi picture adnanebrahimi  Â·  3Comments

o-o00o-o picture o-o00o-o  Â·  3Comments

Naphier picture Naphier  Â·  3Comments

mikedouglasdev picture mikedouglasdev  Â·  3Comments

letmaik picture letmaik  Â·  3Comments