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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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