locked
How can i build a solution with config release on x64 ? RRS feed

  • Question

  • User1253338400 posted

    I am trying to do the following 

    "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe" C:\projects\test.sln /p:Configuration=Release /p:Platform="x64"

    but it gives error 

    The specified solution configuration "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")

    any reason why i cant do the above settings from compiling from command line ?

    thanks

    Tuesday, March 10, 2020 8:25 AM

Answers

  • User288213138 posted

    Hi robby32,

    I dont have the x64 option

    You can select the "new" command to create a x64 platform.

    I dont want to do in AnyCPU, specifically x64 . Is that possible ?

    C:\projects\test.sln /p:Configuration=Release /p:Platform="x64"

    Here you have specified Platform = "x64", why don't you want to do in "x64"?

    Best regards,

    Sam

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 13, 2020 1:49 AM

All replies

  • User288213138 posted

    Hi robby32,

    robby32

    "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe" C:\projects\test.sln /p:Configuration=Release /p:Platform="x64"

    but it gives error 

    The specified solution configuration "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")

    any reason why i cant do the above settings from compiling from command line ?

    I tested your command, it works fine in my side.

    please check your Configuration Manager. Is there X64 in your activity solution platform?

    This is my configuration:

    Best regards,

    Sam

    Wednesday, March 11, 2020 6:38 AM
  • User1253338400 posted

    I dont have the x64 option and I dont want to do in AnyCPU, specifically x64 . Is that possible ?

    thanks

    Thursday, March 12, 2020 2:28 AM
  • User288213138 posted

    Hi robby32,

    I dont have the x64 option

    You can select the "new" command to create a x64 platform.

    I dont want to do in AnyCPU, specifically x64 . Is that possible ?

    C:\projects\test.sln /p:Configuration=Release /p:Platform="x64"

    Here you have specified Platform = "x64", why don't you want to do in "x64"?

    Best regards,

    Sam

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 13, 2020 1:49 AM