June 2008

RAD 2007: overriding project settings with MSBuild

While building a project outside the IDE you could need to change some project settings, for example the output folder. It can be accomplished using the /p switch, the same used to set which configuration to build. If you open the .dprj file, you will see several <DCC_xxxxxx> nodes under each <PropertyGroup> node. These values can be overriden from the command line, each property separated by a semicolon. Here an example from an actual build configuration I use in CruiseControl.Net, to set the exe and dcu output folders: