Watch, Follow, &
Connect with Us

Welcome, Guest
Guest Settings
Help

Thread: MSBuild command line options



Permlink Replies: 2 - Last Post: Feb 17, 2017 1:02 PM Last Post By: John Pearson Threads: [ Previous | Next ]
John Pearson

Posts: 42
Registered: 8/23/05
MSBuild command line options
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 17, 2017 7:46 AM
I'm building from a Windows command line script both for debug and release
using MSBuild in XE2.
I specify both debug and release but only get a build according to the last
Project Manager setting with the IDE.
In other words /property:Configuration=Debug or Release is ignored.
( I also tried /p:Configuration=Debug )

What is the correct MSBuild command option ?.

Best John

And in case I'm asked for more code the relevant lines are

script . .
for /f "tokens=1-8 delims=\" %%I in (list.txt) do @MSBuild.exe
%%O\%%~nP.cbproj /property:Configuration=Debug
script . .
for /f "tokens=1-8 delims=\" %%I in (list.txt) do @MSBuild.exe
%%O\%%~nP.cbproj /property:Configuration=Release
script . .
Antonio Estevez

Posts: 595
Registered: 4/12/00
Re: MSBuild command line options
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 17, 2017 10:00 AM   in response to: John Pearson in response to: John Pearson
El 17/02/2017 a las 16:46, John Pearson escribió:
I'm building from a Windows command line script both for debug and release
using MSBuild in XE2.
I specify both debug and release but only get a build according to the last
Project Manager setting with the IDE.
In other words /property:Configuration=Debug or Release is ignored.
( I also tried /p:Configuration=Debug )

What is the correct MSBuild command option ?.

Best John

And in case I'm asked for more code the relevant lines are

script . .
for /f "tokens=1-8 delims=\" %%I in (list.txt) do @MSBuild.exe
%%O\%%~nP.cbproj /property:Configuration=Debug
script . .
for /f "tokens=1-8 delims=\" %%I in (list.txt) do @MSBuild.exe
%%O\%%~nP.cbproj /property:Configuration=Release
script . .

try using
/p:config=debug
or
/p:config=release
John Pearson

Posts: 42
Registered: 8/23/05
Re: MSBuild command line options
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 17, 2017 1:02 PM   in response to: Antonio Estevez in response to: Antonio Estevez
"Antonio Estevez" <a dot estevez at terra dot com> wrote in message
news:907961 at forums dot embarcadero dot com...

try using
/p:config=debug
or
/p:config=release

Antonio

It worked

Thanx John
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02