To create a new .targets file in the project from the menu
- Choose FileNewOther....
- In C++Builder Projects click C++Builder Files.
- On that page, click MSBuild Targets File.
- 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
- Choose ProjectAdd To Project.
- In the Add to project dialog, select MSBuild targets file (*.targets) from the Files of type:pull down menu.
- Navigate to the .targets file.
- 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
- Right-click the project in the Project Manager.
- Click Add... in the context menu.
- In the Add to project dialog, select MSBuild targets file (*.targets) from the Files of type:pull down menu.
- Navigate to the .targets file.
- 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
- Right-click the .targets file in the Project Manager.
- Click Enable in the context menu.
To ensure a .targets file is conformant and error free
- Right-click the .targets file in the Project Manager.
- Click Validate in the context menu.
To remove a .targets file from the project
- Right-click the .targets file in the Project Manager.
- Click Remove From Project in the context menu.