Add a delay between setting project file and rebuilding project to allow
changes to propagate