Limit to Razor View Engine

This commit is contained in:
Thomas Hounsell 2015-08-03 11:29:43 +01:00
parent 5a6d99a069
commit 5c778dcff8

View File

@ -10,6 +10,10 @@ public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
// Don't bother looking for the legacy aspx view engine.
ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(new RazorViewEngine());
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);