Skip to content

[.NET 6] Hot reload doesn't work for Blazor WASM #34085

@BearsPunch

Description

@BearsPunch

Describe the bug

Hot reload doesn't work for Blazor WASM
image
after changing the file, I see a message "watch : File changed: ...." and nothing happens after. If manually reload the browser page also no changes.
Also I can't close the app by Ctrl + C. I see a message " Application is shutting down..." and that's all. The app freezes until close terminal.

Hosted Blazor app, ASP.NET app - they don't have this issue. Only WASM Blazor has this problem.

To Reproduce

.NET 6 preview 3+ ( with "hotReloadProfile": "blazorwasm", for preview 5 - without)
Create new blazor wasm project and run with:
dotnet watch

Metadata

Metadata

Assignees

Labels

Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.area-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIfeature-hot-reloadThis issue is related to the Hot Reload feaature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions