RAD Studio (Common)
ContentsIndex
PreviousUpNext
Compiling, Building, and Running Applications

This section describes essential information about compiling, building, and running applications. As of 2007, the new build engine in the IDE is MSBuild.exe. You can now create and manage build configurations, named option sets, and targets files that enhance your ability to control your development environment.

Name 
Description 
As you develop your application in the IDE, you can compile (or make), build, and run the application in the IDE. All three operations can produce an executable (such as .exe, .dll, .obj, or .bpl). However, the three operations differ slightly in behavior:

  • Compile (ProjectCompile) or, for C++, Make ( ProjectMake) compiles only those files that have changed since the last build as well as any files that depend on them. Compiling or making does not execute the application (see Run).
  • Build (ProjectBuild) compiles all of the... more 
To build projects, the IDE now uses MSBuild instead of the previous internal build system. The build, compile, and make commands available in the IDE call the new build engine from Microsoft: MSBuild, which provides thorough dependency checking. MSBuild project files are XML-based, and contain sections that describe specific Items, Properties, Tasks, and Targets for the project.
For more information about MSBuild, see the Microsoft documentation at http://msdn.microsoft.com
Build configurations consist of options that you can set on all the build-related pages of the ProjectOptions dialog box. Build configuration information is saved in the MSBuild project file (.dproj or .groupproj). 
Build configurations consist of options that you can set on all the build-related pages of the ProjectOptions dialog box. Build configurations are saved in the project file (.cbproj or .groupproj). 
Named option sets consist of options that you can create from and apply to the build-related pages of the ProjectOptions dialog box. Named option sets are saved in files with the extension .optset
A .targets file is an MSBuild-compliant XML file you can add to a project to allow customizing the build process. A .targets file can have <Target> nodes containing MSBuild scripts.
You can also add or modify project property values with a .targets file. You can leverage the large variety of MSBuild tasks available in the .NET Framework SDK and on the internet, such as "Zip", "SVNCheckout", and "Mail", or write custom tasks yourself.
In summary:
  • A .targets file is an XML file with <Target> nodes that contain MSBuild scripts with lists of tasks to perform.
  • You can create, add, enable,... more 
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!