I am working with a solution containing several projects. There is one otherwise empty "Deploy" project that - in its post build step - does stuff via a small batch script. My issue is that this currently happens even if the build had errors.
I would like to pass an argument to my batch script that prevents any operation on errors. I was expecting something like an errorlevel macro, but could not find anything, neither by poking around or via google.
Any ideas?
EDIT
Using an custom event listening for build errors as suggested by fellow users @displayname and @dlatikay would be sufficient for me, but I'd prefer a solution that does not need to change anything to the IDE itself so it can be passed to other people/systems with less hassle.