question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hot reload using dotnet watch doesn't work 98% of the time

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

My colleges and I use Macs and the .NET CLI for development. Our solution contains two Blazor Wasm hosted apps and a .NET Web API. There are 4 of us and in the past month only 2 of us have seen hot reload work and that was for a grand total of two days.

Running dotnet watch -v shows the following: watch : Hot reload capabilities: . which I’m sure I read somewhere is not a good sign?

I appreciate this isn’t much to go on and I’d love to provide more information but I’m not sure what. But I’m happy to provide any other details.

Expected Behavior

Hot reload should work more than not.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

6.0.101

Anything else?

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
chrissaintycommented, Feb 16, 2022

@pranavkm So good and bad news. I installed the nightly build (6.0.201) and hot reload started working… for a day or two. But I’m back to Hot reload capabilities: .. Are there anymore details or things I can try?

1reaction
pranavkmcommented, Feb 11, 2022

The installers in the nightly build aren’t signed so it’ll print scary messages. Usually on Windows there’s a way to ignore it, but I’m not familiar with the MacOS equivalent. That said, I usually grab the zip archive and run dotnet from the extracted directory. That doesn’t have any of these issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hot reload blazor via dotnet watch not working
I know that with debugging it's currently not possible, so without, it's hosted asp.net core but even standalone it's not working. I am...
Read more >
.NET 6 hot reload error : r/dotnet
Working on macos using vscode. Using CLI when i run dotnet watch it gives out this error. dotnet watch ❌ Exited with error...
Read more >
dotnet watch command - .NET CLI
Hot reload is a feature that lets you apply changes to a running app without having to rebuild and restart it. The changes...
Read more >
NET Hot Reload support for ASP.NET Core
NET Hot Reload applies code changes, including changes to stylesheets, to a running app without restarting the app and without losing app state....
Read more >
dotnet watch run doesnt reload browser - Umbraco 9
Sounds like the feature that you want is in .NET 6.0+ which is called Hot Reload. You can try it now by using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found