0

After updating Visual Studio 2019 to 16.4.0, I can't edit *.cshtml when in debugging, by any changes I need to stop debugging and again debug. What shall I do?

LPLN
  • 475
  • 1
  • 6
  • 20
  • You can try to report a problem on [Developer Community](https://developercommunity.visualstudio.com/spaces/8/index.html). – 大陸北方網友 Dec 12 '19 at 06:30
  • 2
    Does this answer your question? [.NET Core 3.0 - Preview 2 - Razor views don't automatically recompile on change](https://stackoverflow.com/questions/54600273/net-core-3-0-preview-2-razor-views-dont-automatically-recompile-on-change) – Orace Dec 13 '19 at 08:59

1 Answers1

1

If it's a ASP.net core 3.0 project, as explained here (from here), you have to enable this feature from the code.

public void ConfigureServices(IServiceCollection services)
{
    services.AddRazorPages()
            .AddRazorRuntimeCompilation();
    ...
}
Orace
  • 7,822
  • 30
  • 45