This project is read-only.

User RazorGenerator in View. A better way ...

Nov 20, 2011 at 7:18 PM


I installed Razor Generator and added RazorGenerator, using Properties windows, for all views.

Can't I set this automatically for all views?

Isn't there a better way to do this? I tried to add the following on Application_Start:
ViewEngines.Engines.Add(new PrecompiledMvcEngine(typeof(PrecompiledMvcViewEngineStart).Assembly));

But it "doesn't do anything" ...

Thank You,

Nov 20, 2011 at 11:34 PM

See You can use the Enable-RazorGenerator and Redo-RazorGenerator powershell commands to do this.

Nov 21, 2011 at 12:54 AM

I just used it.

Thank You,