added pre build event to make sure config file exists and the project can build