Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

error MSB4126: The specified solution configuration "Release|" is invalid.

Discussion in 'Editor & General Support' started by sunitafe, Jun 24, 2022.

  1. sunitafe

    sunitafe

    Joined:
    Jun 20, 2022
    Posts:
    3
    Hi
    New to Unity.
    Things were going OK but now suddenly my game project won't build any more, no idea why.
    I keep getting the error below. No idea where to look for a solution or how to fix this.
    Are these random failures common in Unity?

    Thanks

    BuildFailedException: Failed to build Visual Studio project using arguments 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe "C:\Users\mike\Pumpkinhead\build\2DFromScratch.sln" /nologo /maxcpucount /p:Configuration=Release /p:platform= /p:SolutionDir="C:\\Users\\mike\\Pumpkinhead\\build\\" /t:Build /clp:Verbosity=minimal'.
    Output:C:\Users\mike\Pumpkinhead\build\2DFromScratch.sln.metaproj : error MSB4126: The specified solution configuration "Release|" 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.
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,301
    The build config seems to be named „Release|“ which indicates so,ething is off.
    Try deleting .csproj and .sln files and restart VS.
     
  3. nov411337

    nov411337

    Joined:
    Jan 27, 2019
    Posts:
    9
    I`m dealing with the same task. I had similar error but output log was complete. Try to add the platform parameter.

    /p:platform=x64