Go Up to Project Options Dialog Box
Project > Options > Build Events
Use the Build Events dialog box to add events for the pre-build, pre-link and post-build stages. Results of the commands you specify in this dialog box are displayed in the Output pane. To control the level of output, choose Tools > Options > Environment Options and adjust the Verbosity level.
Note: Some of the build options are not available for some project types. For example, Pre-link events are available only for C++ projects.
Options
|
Description
|
Target, Apply, Save
|
See Target Options.
|
Post-build events
|
- Execute when
- Executes the specified events either Always or only if the Target is out of date. This option is available only for Post-build events.
- Cancel build on error
- Cancels the project build if a command returns a nonzero error code.
- Commands
- Enter the commands that are to be performed after the build has successfully completed.
- To display the Build Event Commands dialog box for creating the command list, click the ellipsis [...] that pops up in the Commands field.
|
Pre-build events
|
- Cancel build on error
- Cancels the project build if a command returns a nonzero error code.
- Commands
- Enter the commands that are to be performed before the build starts.
- To display the Build Event Commands dialog box for creating a command list, click the ellipsis [...] that pops up in the Commands field.
|
Pre-link events
|
Pre-link events are available for C++ only.
- Cancel build on error
- Cancels the project build if a command returns a nonzero error code.
- Commands
- Enter the commands that are to be performed after the compile phase but before linking.
- To display the Build Event Commands dialog box for creating a command list, click the ellipsis [...] that pops up in the Commands field.
|
See Also