Possible Duplicate:
How to run Visual Studio post-build events for debug build only
I want to execute a postbuild command when compiling my project as Release. If Debug is set, these Postbuilds should not be executed. How to do this? Visual Studio uses the same Pre- and Postbuild for all Configurations