Update runtimecompilation to version 6.0.9 (ensure hot reload continues to work for cshtml) #158
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation to 6.0.9
This ensures that dotnet watch hotreload functionality continues to work when editing a .cshtml file. Any version below 6.0.5 breaks this.
Discussion on a similar situation
dotnet/AspNetCore.Docs#23910 (comment)
Discussion on workaround but it's not needed once the version is set to 6.0.9
https://stackoverflow.com/questions/72909569/in-net-6-mvc-view-is-404-not-found-unless-i-manually-change-the-file-type-to#comment130483625_72911491
Alternatively
You could just remove RuntimeCompilation since it's not needed anymore in .net 6