Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update runtimecompilation to version 6.0.9 (ensure hot reload continues to work for cshtml) #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dotnetshadow
Copy link

@dotnetshadow dotnetshadow commented Sep 28, 2022

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

@dotnetshadow
Copy link
Author

dotnetshadow commented Oct 13, 2022

Actually I'm not sure if this is working or not anymore. I think RuntimeCompilation needs to be removed for it to work in a hot reload situation

@nabinked
Copy link
Owner

Can you see if this is a major/minor version upgrade and then change the version accordingly here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants