CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Remove Default ViewEngine in MVC

  1. #1
    Join Date
    Apr 2019

    Question Remove Default ViewEngine in MVC

    How to Remove default View Engine ?

  2. #2

    Re: Remove Default ViewEngine in MVC

    We can customize view engines in ASP.NET MVC application.

    If you are not using any view engine like ASPX View Engine, better you remove it to improve the performance, it is one of the MVC performance tuning tips from the bunch.

    Removing the Web Form view engine is easy in MVC. We can remove all the view engines and add only Razor view engine by using Application_Start event of Global.asax.cs file like below.

    protected void Application_Start()


    //Remove All Engine


    //Add Razor Engine

    ViewEngines.Engines.Add(new RazorViewEngine());



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)