Search code examples
asp.net-mvc-3viewengine

How to make razor the default view engine in existing project


I upgraded an MVC 2 project to MVC 3. How can I set the default view engine to Razor on an existing project?

Edit: Sorry, I was rather unclear. I want to have Razor be the default type in the Add View dialog.


Solution

  • The Add View dialog should default to a Razor selection in the view engine combobox if your project has at least one Razor file already or if it has no Aspx files (i.e. a project with no view files at all). Are you not seeing that behavior?