What is the difference between a custom build step and an event after build?

Both project settings allow you to execute custom commands. What are the advantages or disadvantages of each?

+5
source share
2 answers

A big difference. A custom build step allows you to specify dependencies and outputs. This allows the build system to determine when to complete the step and skip it when the output is already updated. The post-build event is always executed when the project requires creation and its fixing time.

+9
source

, @Hans , , , .


msdn:

:

Pre-Build event
Custom build tools on individual files
MIDL
Resource compiler
The C/C++ compiler
Pre-Link event
Linker or Librarian (as appropriate)
Manifest Tool
BSCMake
Custom build step on the project
Post-Build event

.

, . , post-build ; , , . , , . , . , .

Visual Studio ++ :

- , . , . . . MSBuild.

- , . , . , MFC . . . MSBuild .

. : , -. , . , build regsvr32.exe . . " ".

0

All Articles