Suddenly my whole project stopped compiling at all, showing the following message:
Program \'path_to_obj_project_folder\' does not contain a static \'
Maybe the "Output type" in properties->Application of the project must be a "Class Library" instead of console or windows application.