-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Hotreload doesn't work on Blazor wasm (.NET6) #38576
Comments
@pranavkm Can you suggest any diagnostic steps here? There's not much information to indicate what might be wrong. |
@SteveSandersonMS Please provide what exactly I'm meant to do, let me know and I'll be doing that ASAP :) |
It's so bizarre actually, I just realized it works using this command "Dotnet watch --project ." |
However it won't be working using that certain trick for blazorwasm hosted with asp.net core :( |
Thanks for contacting us. We're moving this issue to the |
Umm I'm going to raise a flag here because for me it extends to the hosting environment also (meaning no clients receive updates after changes are published) and I think it's related. Please see my comment on this same topic in another issue thread #38809 (comment) |
This seems not to be fixed in SDK 6.0.200--when I do
With --verbose, I get:
There are hot reload changes to apply. Come on, it is so close to working! Can anyone help? |
@tmat can you please look into this? This may already be fixed but wanted you to confirm. |
This is happening to me also. Creating a new ASP.NET Core Hosted Web Assembly app and running |
After trying and re-trying this and reconsidering it each time, I found that when I first start What information more is needed to troubleshoot this, beyond EDIT: now it is failing much more often, perhaps right away or after just a minute or too. Still getting bogus "No hot reload changes to apply." messages in the verbose output. |
Did anyone find a solution? dotnet watch ⌚ File changed: ./Pages/Index.razor.
dotnet watch ⌚ No hot reload changes to apply. |
See also #45519 |
This worked for me (.net 6 and .net 7):
|
Tried that, @pedrinCjm, but it didn't help me. I still get:
|
We have made multiple changes to address |
Hotreload doesn't work on blazor wasm (.NET6 LTS)
I've created a brand new blazor wasm project using Visual Studio 2022 (Version 17.1.0 Preview 1.1) and couldn't get hotreload to work, HOWEVER it works perfectly fine on blazor server!
To Reproduce
Windows 11
Brand new .NET6 blazor wasm project
and then run "dotnet watch"
as soon as something is changed it's gonna end up with this particular message and should be restarted manually!
The text was updated successfully, but these errors were encountered: