Right now there isn't, though conceivably it could be made to work.
However, I'm not sure I understand why you'd want to do that. The general guidance here is the same as for other VS generators (like T4 or EF edmx files): the generated files gets committed to the project, so there is no need to generate it at
build time. It only needs regeneration when the cshtml file changes.
One problem if you don't do this is that when you first open your solution, everything will look broken until you build because those files won't be there.
It may just be that I don't understand your scenario!