10

How do I perform a conditional post-build event? Specifically, I would like to only execute the post-build event command line for the debug release but not for the release build.

I did not see any way in a project's properties' Build Event page.

Sarah Weinberger
  • 15,041
  • 25
  • 83
  • 130
  • possible duplicate of [How to run Visual Studio post-build events for debug build only](http://stackoverflow.com/questions/150053/how-to-run-visual-studio-post-build-events-for-debug-build-only) – Elmo Jul 31 '13 at 17:43

1 Answers1

9

You just need to do some checking against the $ConfigurationName property.

This SO post has lots of examples:
How to run Visual Studio post-build events for debug build only

Community
  • 1
  • 1
Ralph Willgoss
  • 11,750
  • 4
  • 64
  • 67