title: Disable precompiled views on development when using "AddControllersWithViews()"
body: <p>I am developing ASP.NET Core 5.0.1 project and I want to know how can I disable precompiled views while I developing. It takes long time to reload page if I change some html code and I don't want that. I know it is useful at product but I want to disable on development.</p>
  <p>Anyone can help me?</p>
  <p><strong>UPDATE</strong></p>
  <p>app.csproj</p>
  <pre><code>&lt;Project Sdk=&quot;Microsoft.NET.Sdk.Web&quot;&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;net5.0&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>
  <p>Startup.cs</p>
  <pre><code>public class Startup
  {
      public void ConfigureServices(IServiceCollection services, IWebHostEnvironment env)
      {
          services.AddControllersWithViews();
      }
  
      public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
      {
          if (env.IsDevelopment())
          {
              app.UseDeveloperExceptionPage();
          }
  
          app.UseRouting();
          app.UseEndpoints(routes =&gt;
          {
              routes.MapControllerRoute(
                  name: &quot;default&quot;,
                  pattern: &quot;{controller=Home}/{action=Index}/{id?}&quot;
              );
          });
      }
  }
  </code></pre>