Delphi MSBuild Build Configurations From Command Line
Now, if you want to change the build configuration you have to add the parameter /p:config=<BUILD_CONFIG_NAME> For example: C:\Projects\TestDelphiApp001>msbuild /target:Build /p:config=Release or C:\Projects\TestDelphiApp001>msbuild /target:Build /p:config=Debug Copied from original “question”; note community wiki.