-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Blazor WASM Hot Reload cli not working #38561
Comments
Thanks for contacting us. Can you please share more context about the scenario in this issue so that everyone who will be reading this won't need to go to the linked issue and get the details from there? |
Hi @chhinsras. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
I have blazor hosted. I run dotnet watch inside server project. Only hot reload works for sever project not the client project. I try to run dotnet watch inside project. It has hot reload on client project when I change file, and of course there is no server running. |
@pranavkm Does |
It does. There is a (concurrency) issue with watch where it'll sometimes timeout and get incorrect hot reload capabilities for a Blazor WASM app, but in general, it should work. |
@pranavkm generally it doesn't work. once in a while it works. |
@pranavkm is this a dupe then of the linked issue? |
Thanks for contacting us. We're moving this issue to the |
hahah. .NET 7. Why not addressing in upcoming patch |
1 year of waiting for these kinda bugs is hilarious |
And I'll raise another flag here too referring to the first thread I posted in about this same issue. I'm fairly certain there are 3 threads on this now. #38809 (comment) |
@Aquaritek I have been working with C# since 2015 and with Asp.Net since 2019. I really love them. I started to adapt Blazor in 2020. I most of the time use VS code for development which I am on Mac. I started the company project with Asp.Net and Blazor early this year. Really struggling with development experienece and no reason bugs. Been almost a year, finally, It is hard but I have to move away from Blazor right now with the current development expereience. Hope to be back in upcoming .NET7 with ready and user-friendly development expereience. What I like using now is Asp.Net and Angular stacks. MAUI is interesting but I hesitate to compare with Flutter. My suggestion, VS code should be priorized as well since it is Microsoft open source project, yet, the Flutter development on VS code is far-far better than MAUI or Blazor. |
@chhinsras I agree. CLI and vs code should be the absolute first choice for .net development. the .net platform should be CLI first for ultimate cross-platform development solution like any other platform such as js, node, go, flutter, python, etc. these all have great ide support. But they prioritize CLI most |
I love .net but yeah, I am really struggling. it's shameful that VS Code support Flutter much much better than Blazor , MAUI |
yeah even go, rust support in vs code is increasing day by day. But I can't see much improvements in vs code omnisharp for c# extension. |
I do not understand either. VS IDE is good, but I love VS Code than. Now Hot Reload CLI is planned for .NET7 which is another year to go. I just found another bug inside VS code for C# 10 with .NET6. Using implicit namespace. you will see differnt color of property inside Class. |
Yeah, there are quite some bugs. C# doesn't provide the ultimate coding experience with vs code like most other modern languages |
It's so frustrating sometime! I like flutter more on its dev experience |
@chhinsras do you happen to have a minimal app that reproduces the issue? I'm unable to reproduce the reported issue on a project created from the template. |
Hi @chhinsras. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Yes. Blazor WSAM hosted project. |
@chhinsras can you run watch with the |
Hi @chhinsras. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@pranavkm i was facing the same issue.
|
@ziaulhasanhamim thanks for the logs. The log indicates a dupe of #36723 which is being addressed in the the upcoming .NET 6.0 SDK / VS 17.1 release. You could try a nightly build of the SDK from: https://github.com/dotnet/installer#installers-and-binaries (use an installer from the Release/6.0.2XX column). |
thanks for letting me know |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. See our Issue Management Policies for more information. |
This seems not to be fixed in SDK 6.0.200--when I change the plain HTML markup in a .razor file, I still get:
With --verbose, I get:
Can anyone help? It is so close to working! |
Having the same problem with SDK 6.0.200
|
I have blazor hosted. I run dotnet watch inside server project. Only hot reload works for sever project not the client project.
I try to run dotnet watch inside project. It has hot reload on client project when I change file, and of course there is no server running.
@chhinsras Can you file a new issue specifically about your Blazor WASM + hot reload problem?
Originally posted by @captainsafia in #38103 (comment)
The text was updated successfully, but these errors were encountered: