RAD Studio (Common)
ContentsIndex
PreviousUpNext
Using Targets Files
To create a new .targets file in the project from the menu

  1. Choose FileNewOther....
  2. In C++Builder Projects click C++Builder Files.
  3. On that page, click MSBuild Targets File.
  4. A new .targets XML file is created and displayed in the IDE window. It contains only a <Project> node.

To add a .targets file to the project from the menu

  1. Choose ProjectAdd To Project.
  2. In the Add to project dialog, select MSBuild targets file (*.targets) from the Files of type:pull down menu.
  3. Navigate to the .targets file.
  4. Click Open to add the file to the project and close the dialog. Click Cancel to not add the file and close the dialog.

To add a .targets file to the project from the Project Manager

  1. Right-click the project in the Project Manager.
  2. Click Add... in the context menu.
  3. In the Add to project dialog, select MSBuild targets file (*.targets) from the Files of type:pull down menu.
  4. Navigate to the .targets file.
  5. Click Open to add the file to the project and close the dialog. Click Cancel to not add the file and close the dialog.

To enable a .targets file

  1. Right-click the .targets file in the Project Manager.
  2. Click Enable in the context menu.

To ensure a .targets file is conformant and error free

  1. Right-click the .targets file in the Project Manager.
  2. Click Validate in the context menu.

To remove a .targets file from the project

  1. Right-click the .targets file in the Project Manager.
  2. Click Remove From Project in the context menu.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!