OpenRAModSDK icon indicating copy to clipboard operation
OpenRAModSDK copied to clipboard

Build Failed : Error MSB4126

Open Amrothian opened this issue 5 years ago • 5 comments

I have encountered an issue while attempting use the command "make all" for the first time in order to compile an example modding file.

C:\Users\User\Downloads\OpenRAModSDK-20200202\OpenRAModSDK-20200202\engine\OpenRA.sln.metaproj : Error MSB4126: The specified solution configuration "Debug:MCD" 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. [C:Users\User\Downloads\OpenRAModSDK-20200202\OpenRAModSDK-20200202\engine\OpenRA.sln]

image

This was done using the latest build release (20200202) and with the example mod.

The program recommended installing Visual Studio. Is this my issue? Because I have the 2019 version already installed so I am not sure what else needs to be done.

Is it because I have the modding file outside of the OpenRA file in the Program Files ?

Amrothian avatar Mar 24 '20 02:03 Amrothian

Not sure what is going on here, I don't even have such a metaproj file. You can try doing what the error suggests: Open the solution in Visual Studio and open the configuration for the solution file. If that doesn't help you I'd try just deleting and redownloading.

Is it because I have the modding file outside of the OpenRA file in the Program Files ?

I don't think so since I have those outside of Program Files myself.

abcdefg30 avatar Mar 24 '20 15:03 abcdefg30

Previous cases where we've seen this (e.g. https://github.com/OpenRA/OpenRA/issues/6393) were caused by antivirus or other system management software inserting bogus registry keys that override and break MSBuild. I'll hazard to guess that MCD is the acronym for the name of whatever software is causing this.

pchote avatar Mar 24 '20 15:03 pchote

I've seen people having this error several times, even back during Generals Alpha's developements. I've been giving this link that Graion initially gave when we encountered this first time to other people that experience this: https://helpdrive.wordpress.com/2011/07/10/the-specified-solution-configuration-debugmcd-is-invalid/

MustaphaTR avatar Mar 24 '20 20:03 MustaphaTR

@MustaphaTR @pchote @abcdefg30 thanks so much for the responses. I will get to this as soon as I am able and close the thread if the issue is resolved.

Amrothian avatar Mar 25 '20 01:03 Amrothian

What is the status here?

abcdefg30 avatar Jun 10 '20 17:06 abcdefg30