-
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
Document How to Enable Hot Reloading Using dotnet run/watch #38036
Comments
Hello @RehanSaeed, There is still some problems with Dotnet hot reload. NOTE: You don't need to edit Wrong examples: Correct examples: |
Thanks for contacting us. |
Hello @mkArtakMSFT, I think we should consider it as a bug, because normally we just need to run dotnet watch command without --project . flag when we are in the same directory of the project. Also dotnet watch command will fail when system goes to sleep. So we should restart system (Not restarting dotnet watch) to fix this issue. |
I use dotnet watch run or dotnet run inside Server project (Blazor Hosted). File changed detected but No hot reload change to apply , why? I need to run Client project. but how can i run both Server and Client? |
Actually it's a bug in |
are you saying go to Server folder. then run dotnet watch --project ? will it run Client project as well? |
Hello @chhinsras, Yes! |
Look at last line, it says: please use this comment then check if it's fixed or not: |
I followed your recommendation. still no luck. Its not updating the UI |
Same issue here. info: Microsoft.AspNetCore.Hosting.Diagnostics[1] |
|
Tried all the different suggestions, and this was really a struggle. |
Still no luck tho. Really disappointed. how simple thing like this can't be working. |
Is your feature request related to a problem? Please describe.
It is not clear how to enable hot reloading using
dotnet run
ordotnet watch
from alaunchSettings.json
file. The .NET blog mention that we should add the"hotReloadProfile": "aspnetcore"
setting like so:However, I also came across this PR which removes this need:
Then there is the question about how to enable the feature when using
dotnet watch
in alaunchSettings.json
file:It would also be nice to know if this affects IIS Express or WSL2
Describe the solution you'd like
I'd like to know how to enable the feature for both
dotnet run
anddotnet watch
from alaunchSettings.json
file and have this documented somewhere.The text was updated successfully, but these errors were encountered: