I had written a Console Application that I run as part of my post build for other projects.. The Console application logs a series of messages to the console as it executes. I use the Environment.ExitCode value to specify an error or success condition. When the application executes without issue, the ExitCode is 0, when there is a problem its –1. As part of my logging, I log the value of the exit code right before the application terminates. When I run this executable from the command line, it behaves ......