Pre build event