This is a follow up question. Is it possible to set the build configuration for a command line build in Codegear 2009?
For example:
msbuild /property:BuildConfiguration=Release workspaceX.groupproj
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes. In fact you’re very close with your example. Use
/p:Configuration="Name":It is
Configuration="Name"for a C++Builder project, andconfig="Name"for a Delphi project, which you’ll need to be aware of if your project group mixes Delphi and C++Builder projects. (I don’t know why this is, but there you go. You would not believe how long that took to figure out. Edit: according to a comment, ‘config’ works in 2009. I can only state that for certain it did not work for us in 2010.)You can also use
/t:to specify a target, such as cleaning, building or making your project;/verbosityto set an output level (‘quiet‘ is the closest that mimics the old C++Builder 6 compiler output without writing a custom MSBuild logger); and other switches which you can see if you typemsbuild /?at a command line. You can end up with something like this:You’ll need to include a line like this in your build script for each project in your project group.
As far as I’m aware, you can’t build or make a project group itself as a whole from the command line.