Understanding Custom Build Steps and Build Events
From within the Visual C++ development environment, there are two ways customize the build process:
Troubleshooting Custom Build Steps and Build Events can help you ensure that your custom build steps and build events run as expected.
The output format of a custom build step or build event can also enhance the usability of the tool. For more information, see Formatting the Output of a Custom Build Step or Build Event.
Build events and custom build steps run in the following order along with other build steps:
Pre-Build event
Custom build steps on individual files
Proxy generator
MIDL
Resource compiler
The C/C++ compiler
Pre-Link event
Linker or Librarian (as appropriate)
BSCMake
Custom build step on the project
Web deployment tool. The web deployment tool runs as part of a build only if the linker or librarian tools also run. However, you can run the web deployment tool via the Build menu.
Post-Build event
A custom build step on the project, the web deployment tool, and a post-build event run (sequentially) at the same point in the build — after all other build processes are completed.