VS 2003 Tip #10: Run pre and post build commands from the C# projects

Vs7 customers complained to us that they wanted pre and post build commands that could be run from the project system. Its pretty reasonable to want to automate some tasks that you would do before or after builds, so in Everett we added this in.

To get to this feature take any C# project, and check out the project properties (Project->Properties). Then select Common Properties->Build Events and you should see the property page for custom build steps.

This syntax can include any command that is valid at the command line or in a .bat file. The name of a batch file should be preceded by call to ensure that all subsequent commands will be executed. There are also a handy set of macros to help with the commands. For more information, check out the VS help on this.

For those who might ask, VB doesnt support this in Everett.