I know this is not the answer to your direct question (Uwe and Nat have this coverage), but you will be much better off building with msbuild. This way you get all the settings in the .dproj file.
The build command should look like this:
msbuild test.dproj /t:Rebuild /p:Config=Release
If you are creating this from a script package, you need to make sure that it can see the right msbuild . Do it like this:
call "path\to\delphi\installation\bin\rsvars.bat" msbuild test.dproj /t:Rebuild /p:Config=Release
David heffernan
source share