visual-studiovisual-c++post-build-eventcustom-build-step

What is the difference between a Custom Build Step and a Post-Build Event?


Both project settings allow me to execute custom commands. What are the benefits or drawbacks of each?


Solution

  • Big difference. A custom build step allows you to specify dependencies and outputs. Which allows the build system to determine when to execute the step and to skip it when the output is already up to date. A post-build event is always executed when the project requires building and its timing is fixed.