error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
That was caused by your project had a post-build event which did not return 0 (i.e. success). You can correct it as follows:
1. Open the properties page of your project;
2. select the “Build Event” tab;
3. Here you can either clear the content in the “Post-build event command line” textbox, or make the command line work properly (return 0), depending on your needs.
4. Save and rebuild.