The best option would be to not modify the project during the build (use temporary or global macros instead).
There isn't a way to discard changes made during a GUI build, but you could save the modified project in another location, i.e.:
Project.Save "%TEMP%\temp.bld"
|