protected void Application_Start() { // Removing WebForms view engine. ViewEngines.Engines.Clear(); ViewEngines.Engines.Add(new RazorViewEngine() { FileExtensions = new string[] { "cshtml" } }); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); CleanerConfig.RegisterCleaner(); }
public static void RegisterCleaner() { Instance = new CleanerConfig(); }