c# – Changing HTML does not reflect on page – Asp .NET Core 3.0


Recently I decided to test ASP .Net core 3.0 , I always changed the HTML without the need to recompile the project, but in this version, I can't change ANYTHING in the HTML without the need to recompile the entire project, even a simple tag. I didn't find anything in the documentation about this change, if it's a configuration, or an error in the IDE itself, which had to be updated, before I used Visual Studio 2017, and in the .Net Core 3.0 version, it requires Visual Studio 2019.

Would there be any way to change this? It is very inconvenient to have to recompile to apply a simple HTML change.


You need to install the Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation package via nuget and then configure the AddRazorRuntimeCompilation service in startup.cs .

public void ConfigureServices(IServiceCollection services)
Scroll to Top