1 out of 7 rated this helpful - Rate this topic

Pre-build/Post-build Event Command Line Dialog Box 

Clicking the browse (...) button of the PreBuildEvent or PostBuildEvent property for a deployment project brings up the Pre-build or Post-build Event Command Line dialog box.

You can type pre- or post-build events directly in the edit box, or you can select pre- and post-build macros from a list of available macros.

Pre-build events do not run if the project is up-to-date and no build is triggered.

Command line edit box

Contains the events to run either for pre-build or post-build.

Macros

Expands the edit box to display a list of macros to insert in the command-line edit box.

Macro table

Lists the available macros and its value. See "Macros" below for a description of each. You can select only one macro at a time to insert into the command-line edit box.

Insert

Inserts into the command line edit box the macro selected in the macro table.

Macros

You can use any of these macros to specify locations for files, or to get the actual name of the input file in the case of multiple selections. These macros are not case-sensitive.

Macro Description

$(BuiltOuputPath)

The absolute path name to the output file directory.

$(Configuration)

The name of the current project configuration, for example, "Debug".

$(ProjectDir)

The directory of the project (defined as drive + path); includes the trailing backslash '\'.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
How did a typo make it into the product?

Make sure you misspell the variable (i.e. $(BuiltOuputPath) . If not, you will wonder why your script doesn't work. This drove me a bit nuts but the documentation is right. They really put a misspelled macro variable in the product.

Brian Seekford