This project is read-only.

Redo-RazorGenerator for complete solution?

Dec 21, 2012 at 10:23 AM

Is there a command to rebuild the .generated.cs files for all views inside a complete solution?

Background: We have one solution with 30 "Plugins" that do make use of RazorGenerator to provide views for a MVC4 web application. Sometimes we have the issue that some *.generated.cs-files will not be updated, because one of the developers has a problem with RazorGenerator. So we want to be able to regenerate all files before the release-build.

Dec 21, 2012 at 7:56 PM

There isn't, but you should be able to write some Powershell that calls it in a loop for each project.

Dec 21, 2012 at 9:27 PM

Get-Project -All | Redo-RazorGenerator