Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012: How to perform a conditional post-build event

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.

like image 493
Sarah Weinberger Avatar asked Nov 29 '12 21:11

Sarah Weinberger


1 Answers

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

like image 148
Ralph Willgoss Avatar answered Oct 23 '22 23:10

Ralph Willgoss