User RazorGenerator in View. A better way ...

Nov 20, 2011 at 6:18 PM

Hello,

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,
Miguel

Coordinator
Nov 20, 2011 at 10:34 PM

See http://razorgenerator.codeplex.com/workitem/11. You can use the Enable-RazorGenerator and Redo-RazorGenerator powershell commands to do this.

Nov 20, 2011 at 11:54 PM

I just used it.

Thank You,

Miguel