Although thinking about it, we should be able to add the BeforeBuild pieces to the generator.targets file and remove it from here.