'<event>' failed with error code '<error>'

This error was generated because the pre-build or post-build event failed with the specified error code.