Is there an existing issue for this?
Describe the bug
I'm making a Blazor app with .NET 8.0.100 and try to use the Hot Reload functionality of the dotnet watch command.
It works fine at first, then usually after a few minutes of usage it becomes increasingly slow and can take up to minutes to detect a change in the code. It looks like the time to detect a change is approximately doubled each time (see screenshot below).

Expected Behavior
Relatively fast detection of changes and browser refresh when using dotnet watch.
Steps To Reproduce
- Create a new Blazor project with
dotnet new blazor
- Try to make a page with
dotnet watch on Ubuntu using a terminal
Exceptions (if any)
No response
.NET Version
8.0.100
Anything else?
I tried using different browsers but the problem remained.
IDE
VS Code 1.85.0
dotnet --info output
.NET SDK:
Version: 8.0.100
Commit: 57efcf1350
Workload version: 8.0.100-manifests.6c33ef20
Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/8.0.100/
.NET workloads installed:
Workload version: 8.0.100-manifests.6c33ef20
There are no installed workloads to display.
Host:
Version: 8.0.0
Architecture: x64
Commit: 5535e31a71
.NET SDKs installed:
8.0.100 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.11 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.11 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Is there an existing issue for this?
Describe the bug
I'm making a Blazor app with .NET 8.0.100 and try to use the Hot Reload functionality of the
dotnet watchcommand.It works fine at first, then usually after a few minutes of usage it becomes increasingly slow and can take up to minutes to detect a change in the code. It looks like the time to detect a change is approximately doubled each time (see screenshot below).
Expected Behavior
Relatively fast detection of changes and browser refresh when using
dotnet watch.Steps To Reproduce
dotnet new blazordotnet watchon Ubuntu using a terminalExceptions (if any)
No response
.NET Version
8.0.100
Anything else?
I tried using different browsers but the problem remained.
IDE
VS Code 1.85.0
dotnet --info output
.NET SDK:
Version: 8.0.100
Commit: 57efcf1350
Workload version: 8.0.100-manifests.6c33ef20
Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/8.0.100/
.NET workloads installed:
Workload version: 8.0.100-manifests.6c33ef20
There are no installed workloads to display.
Host:
Version: 8.0.0
Architecture: x64
Commit: 5535e31a71
.NET SDKs installed:
8.0.100 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.11 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.11 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found