[.NET6] Referencing Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation breaks hot reload for .cshtml files #38965
Labels
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
✔️ Resolution: By Design
Resolved because the behavior in this issue is the intended design.
Status: Resolved
Similar to issue #38809 but this is about regular Razor views, not Blazor components.
Here's the repro steps.
dotnet new mvc
dotnet add package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
.cshtml
files. Verify it by runningdotnet watch --list
. All.cshtml
files are no longer listed in the output. Here's a sample output.I would happily do without the
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
package if OmniSharp issue #4822: integrate debugging with dotnet watch was solved. I'm a VSCode user and I would like to usedotnet watch
all the time for development but I can't because the debugger won't attach automatically when the process is restarted.The text was updated successfully, but these errors were encountered: