Skip to content
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

dotnet watch: No hot reload changes to apply. #59868

Open
1 task done
airwedge1 opened this issue Jan 14, 2025 · 0 comments
Open
1 task done

dotnet watch: No hot reload changes to apply. #59868

airwedge1 opened this issue Jan 14, 2025 · 0 comments
Labels
area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI

Comments

@airwedge1
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

This is a repost of #57951. With 9.0.100 being released I thought this fix would have been included.

The first Razor edit fails with the message "No hot reload changes to apply."

Expected Behavior

The Razor code change applies successfully.

Steps To Reproduce

Install .NET 9 SDK 9.0.101
dotnet new blazor
dotnet watch
Edit the h1 in Home.razor
Expected result: Change is successfully applied and shows up in the browser
Actual result: "No hot reload changes to apply." and browser doesn't update, even after refreshing the browser
Workaround: Make multiple edits. Subsequent edits apply.

Exceptions (if any)

No response

.NET Version

9.0.101

Anything else?

From dotnet watch run --verbose. shows both the version change which does not hot reload and the second change which does.

PS E:\Repos\BlazorApp23\BlazorApp23> dotnet watch run --verbose
dotnet watch ⌚ Working directory: 'E:\Repos\BlazorApp23\BlazorApp23'
dotnet watch ⌚ Watching with Hot Reload.
dotnet watch 🔥 Hot reload enabled. For a list of supported edits, see https://aka.ms/dotnet/hot-reload.
💡 Press "Ctrl + R" to restart.
dotnet watch ⌚ Running MSBuild target 'GenerateWatchList' on 'E:\Repos\BlazorApp23\BlazorApp23\BlazorApp23.csproj'
dotnet watch 🚀 Launched 'C:\Program Files\dotnet\dotnet.exe' with arguments 'msbuild /nologo E:\Repos\BlazorApp23\BlazorApp23\BlazorApp23.csproj /p:_DotNetWatchListFile=D:\Users\nwalker\AppData\Local\Temp\tmp0fgwir.tmp /nologo /v:n /t:GenerateWatchList /p:DotNetWatchBuild=true /p:DesignTimeBuild=true "/p:CustomAfterMicrosoftCommonTargets=C:\Program Files\dotnet\sdk\9.0.101\DotnetTools\dotnet-watch\9.0.101-servicing.24572.9\tools\net9.0\any\DotNetWatch.targets" "/p:CustomAfterMicrosoftCommonCrossTargetingTargets=C:\Program Files\dotnet\sdk\9.0.101\DotnetTools\dotnet-watch\9.0.101-servicing.24572.9\tools\net9.0\any\DotNetWatch.targets" /p:_DotNetWatchTraceOutput=true': process id 34688
dotnet watch ⌚ Process id 34688 ran for 835ms.
dotnet watch ⌚ Watching 60 file(s) for changes
dotnet watch ⌚ Target process is 'dotnet'
dotnet watch ⌚ Configuring the app to use browser-refresh middleware
dotnet watch ⌚ dotnet-watch is configured to launch a browser on ASP.NET Core application startup.
dotnet watch ⌚ Refresh server running at wss://localhost:56235,ws://localhost:56236.
dotnet watch 🔥 HotReloadProfile: BlazorWebAssembly.
dotnet watch 🚀 [BlazorApp23 (net9.0)] Launched 'C:\Program Files\dotnet\dotnet.exe' with arguments '[env:DOTNET_MODIFIABLE_ASSEMBLIES=debug] [env:DOTNET_WATCH_HOTRELOAD_NAMEDPIPE_NAME=f9e3fea0-7be2-4522-a8a2-19ff10ddd65b] "[env:DOTNET_STARTUP_HOOKS=C:\Program Files\dotnet\sdk\9.0.101\DotnetTools\dotnet-watch\9.0.101-servicing.24572.9\tools\net9.0\any\hotreload\Microsoft.Extensions.DotNetDeltaApplier.dll;C:\Program Files\dotnet\sdk\9.0.101\DotnetTools\dotnet-watch\9.0.101-servicing.24572.9\tools\net9.0\any\middleware\Microsoft.AspNetCore.Watch.BrowserRefresh.dll]" run': process id 38056
dotnet watch ⌚ [BlazorApp23 (net9.0)] Connecting to the browser.
Using launch settings from E:\Repos\BlazorApp23\BlazorApp23\Properties\launchSettings.json...
Building...
dotnet watch 🕵️ [f9e3fea0-7be2-4522-a8a2-19ff10ddd65b] Ignoring process 'e:.nuget\packages\microsoft.aspnetcore.components.webassembly.devserver\9.0.0\tools\blazor-devserver.dll', expecting 'dotnet'
info: Microsoft.Hosting.Lifetime[14]
Now listening on: https://localhost:7181
dotnet watch ⌚ Launching browser: https://localhost:7181/
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: E:\Repos\BlazorApp23\BlazorApp23
dotnet watch ⌚ [BlazorApp23 (net9.0)] Build completed.
dotnet watch ⌚ Solution:
dotnet watch ⌚ Project: E:\Repos\BlazorApp23\BlazorApp23\BlazorApp23.csproj
dotnet watch ⌚ Document: E:\Repos\BlazorApp23\BlazorApp23\Program.cs [ZsWS+aL7QNObRXvVIazVOqw+0Z0qf4/moUM+lPjbTg0=]
dotnet watch ⌚ Document: E:\Repos\BlazorApp23\BlazorApp23\obj\Debug\net9.0\BlazorApp23.GlobalUsings.g.cs [ZlEjOZlSyQYJ1ySSwx7EMpDKChOJKfw/bHVKjxGXxAA=]
dotnet watch ⌚ Document: E:\Repos\BlazorApp23\BlazorApp23\obj\Debug\net9.0.NETCoreApp,Version=v9.0.AssemblyAttributes.cs [nnZJnE5ctiOtSInqqZsaU9nJcO/PkC2LCW54oZ7kKF0=]
dotnet watch ⌚ Document: E:\Repos\BlazorApp23\BlazorApp23\obj\Debug\net9.0\BlazorApp23.AssemblyInfo.cs [36+WNuottJ7aWGCizlamAH4rn9Ft5AVXe2sJNyLxgpU=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\App.razor [ymn7wWHAEw1teDFyi+/JdauxewRJGicbxJJmJhBVVDs=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Pages\Counter.razor [zPX+O2jqJIxAjLC43xy8X1Kmteng1D1Um6BH1aPgnqQ=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Pages\Home.razor [fLiw1zybCmJ49MCHNd2FM2eS5zShT49d86RPfLnGOMk=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Pages\Weather.razor [yjCXVZ845ZughmoNavBbkZ3msSyLphlQGPXo9ui1LK4=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23_Imports.razor [abNtBFKXN7lVzS7v5lrpGTO6um6Nwom9FasKmw8imYo=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Layout\MainLayout.razor [k9S5QPLOIo4nCwc2jlT21Dn/xEvDEJYnQyVVjmXSFX8=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Layout\NavMenu.razor [QF7r4QQnOF2cqrh6tA88J3J6H4B6BuOQvZarPGw4uEI=]
dotnet watch ⌚ Config: E:\Repos\BlazorApp23\BlazorApp23\obj\Debug\net9.0\BlazorApp23.GeneratedMSBuildEditorConfig.editorconfig [+98UmvxQLh9pS4xBOQ6sM2+vf57tYL7gBFIjlkGRKUY=]
dotnet watch ⌚ Config: C:\Program Files\dotnet\sdk\9.0.101\Sdks\Microsoft.NET.Sdk\analyzers\build\config\analysislevel_9_default.globalconfig [ZRFi6tgci8t+nmaiOxtng/+Dca1YjDn+JWY1//eQ7FQ=]
dotnet watch 🔥 Hot reload session started.
dotnet watch ⌚ Waiting for changes
dotnet watch ⌚ Ignoring file change during build: Add 'E:\Repos\BlazorApp23\BlazorApp23\Pages\kvs2wdsp.3c2~' (created 00:00:00.0000000 and written 00:00:00.0000000 before 17:11:53.0061881).
dotnet watch ⌚ Ignoring file change during build: Update 'E:\Repos\BlazorApp23\BlazorApp23\Pages\kvs2wdsp.3c2~' (created 00:00:00.0000000 and written 00:00:00.0000000 before 17:11:53.0061881).
dotnet watch ⌚ Ignoring file change during build: Add 'E:\Repos\BlazorApp23\BlazorApp23\Pages\Home.razorRF4462a43.TMP' (created 00:00:00.0000000 and written 00:00:00.0000000 before 17:11:53.0061881).
dotnet watch ⌚ File 'E:\Repos\BlazorApp23\BlazorApp23\Pages\Home.razor' deleted after 17:11:53.0061881.
dotnet watch ⌚ Ignoring file change during build: Update 'E:\Repos\BlazorApp23\BlazorApp23\Pages\Home.razor
RF4462a43.TMP' (created 00:00:00.0000000 and written 00:00:00.0000000 before 17:11:53.0061881).
dotnet watch ⌚ File 'E:\Repos\BlazorApp23\BlazorApp23\Pages\kvs2wdsp.3c2~' deleted after 17:11:53.0061881.
dotnet watch ⌚ File change: Add 'E:\Repos\BlazorApp23\BlazorApp23\Pages\Home.razor' (written 17:11:59.2551351 after 17:11:53.0061881).
dotnet watch ⌚ File 'E:\Repos\BlazorApp23\BlazorApp23\Pages\Home.razorRF4462a43.TMP' deleted after 17:11:53.0061881.
dotnet watch ⌚ File deleted: .\Pages\Home.razor
dotnet watch ⌚ Solution:
dotnet watch ⌚ Project: E:\Repos\BlazorApp23\BlazorApp23\BlazorApp23.csproj
dotnet watch ⌚ Document: E:\Repos\BlazorApp23\BlazorApp23\Program.cs [ZsWS+aL7QNObRXvVIazVOqw+0Z0qf4/moUM+lPjbTg0=]
dotnet watch ⌚ Document: E:\Repos\BlazorApp23\BlazorApp23\obj\Debug\net9.0\BlazorApp23.GlobalUsings.g.cs [ZlEjOZlSyQYJ1ySSwx7EMpDKChOJKfw/bHVKjxGXxAA=]
dotnet watch ⌚ Document: E:\Repos\BlazorApp23\BlazorApp23\obj\Debug\net9.0.NETCoreApp,Version=v9.0.AssemblyAttributes.cs [nnZJnE5ctiOtSInqqZsaU9nJcO/PkC2LCW54oZ7kKF0=]
dotnet watch ⌚ Document: E:\Repos\BlazorApp23\BlazorApp23\obj\Debug\net9.0\BlazorApp23.AssemblyInfo.cs [36+WNuottJ7aWGCizlamAH4rn9Ft5AVXe2sJNyLxgpU=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\App.razor [ymn7wWHAEw1teDFyi+/JdauxewRJGicbxJJmJhBVVDs=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Pages\Counter.razor [zPX+O2jqJIxAjLC43xy8X1Kmteng1D1Um6BH1aPgnqQ=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Pages\Weather.razor [yjCXVZ845ZughmoNavBbkZ3msSyLphlQGPXo9ui1LK4=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23_Imports.razor [abNtBFKXN7lVzS7v5lrpGTO6um6Nwom9FasKmw8imYo=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Layout\MainLayout.razor [k9S5QPLOIo4nCwc2jlT21Dn/xEvDEJYnQyVVjmXSFX8=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Layout\NavMenu.razor [QF7r4QQnOF2cqrh6tA88J3J6H4B6BuOQvZarPGw4uEI=]
dotnet watch ⌚ Config: E:\Repos\BlazorApp23\BlazorApp23\obj\Debug\net9.0\BlazorApp23.GeneratedMSBuildEditorConfig.editorconfig [+98UmvxQLh9pS4xBOQ6sM2+vf57tYL7gBFIjlkGRKUY=]
dotnet watch ⌚ Config: C:\Program Files\dotnet\sdk\9.0.101\Sdks\Microsoft.NET.Sdk\analyzers\build\config\analysislevel_9_default.globalconfig [ZRFi6tgci8t+nmaiOxtng/+Dca1YjDn+JWY1//eQ7FQ=]
dotnet watch ⌚ No hot reload changes to apply.
dotnet watch ⌚ Updating diagnostics in the browser.
dotnet watch 🔥 Hot reload change handled in 2728ms.
dotnet watch ⌚ File change: Add 'E:\Repos\BlazorApp23\BlazorApp23\Pages\hfwnjnc5.z2b
' (written 17:12:11.8491155 after 17:11:53.0061881).
dotnet watch ⌚ Ignoring file change during build: Update 'E:\Repos\BlazorApp23\BlazorApp23\Pages\hfwnjnc5.z2b~' (created 00:00:00.0000000 and written 00:00:00.0000000 before 17:11:53.0061881).
dotnet watch ⌚ Ignoring file change during build: Add 'E:\Repos\BlazorApp23\BlazorApp23\Pages\Home.razorRF4465b74.TMP' (created 00:00:00.0000000 and written 00:00:00.0000000 before 17:11:53.0061881).
dotnet watch ⌚ File 'E:\Repos\BlazorApp23\BlazorApp23\Pages\Home.razor' deleted after 17:11:53.0061881.
dotnet watch ⌚ Ignoring file change during build: Update 'E:\Repos\BlazorApp23\BlazorApp23\Pages\Home.razor
RF4465b74.TMP' (created 00:00:00.0000000 and written 00:00:00.0000000 before 17:11:53.0061881).
dotnet watch ⌚ File 'E:\Repos\BlazorApp23\BlazorApp23\Pages\hfwnjnc5.z2b~' deleted after 17:11:53.0061881.
dotnet watch ⌚ File change: Add 'E:\Repos\BlazorApp23\BlazorApp23\Pages\Home.razor' (written 17:12:11.8491155 after 17:11:53.0061881).
dotnet watch ⌚ File 'E:\Repos\BlazorApp23\BlazorApp23\Pages\Home.razorRF4465b74.TMP' deleted after 17:11:53.0061881.
dotnet watch ⌚ File added: .\Pages\hfwnjnc5.z2b

dotnet watch ⌚ File deleted: .\Pages\Home.razor
dotnet watch ⌚ File addition triggered re-evaluation.
dotnet watch ⌚ Running MSBuild target 'GenerateWatchList' on 'E:\Repos\BlazorApp23\BlazorApp23\BlazorApp23.csproj'
dotnet watch 🚀 Launched 'C:\Program Files\dotnet\dotnet.exe' with arguments 'msbuild /nologo E:\Repos\BlazorApp23\BlazorApp23\BlazorApp23.csproj /p:_DotNetWatchListFile=D:\Users\nwalker\AppData\Local\Temp\tmppgf5eq.tmp /nologo /v:n /t:GenerateWatchList /p:DotNetWatchBuild=true /p:DesignTimeBuild=true "/p:CustomAfterMicrosoftCommonTargets=C:\Program Files\dotnet\sdk\9.0.101\DotnetTools\dotnet-watch\9.0.101-servicing.24572.9\tools\net9.0\any\DotNetWatch.targets" "/p:CustomAfterMicrosoftCommonCrossTargetingTargets=C:\Program Files\dotnet\sdk\9.0.101\DotnetTools\dotnet-watch\9.0.101-servicing.24572.9\tools\net9.0\any\DotNetWatch.targets" /p:_DotNetWatchTraceOutput=true': process id 28652
dotnet watch ⌚ Process id 28652 ran for 800ms.
dotnet watch ⌚ Watching 60 file(s) for changes
dotnet watch ⌚ Solution:
dotnet watch ⌚ Project: E:\Repos\BlazorApp23\BlazorApp23\BlazorApp23.csproj
dotnet watch ⌚ Document: E:\Repos\BlazorApp23\BlazorApp23\Program.cs [ZsWS+aL7QNObRXvVIazVOqw+0Z0qf4/moUM+lPjbTg0=]
dotnet watch ⌚ Document: E:\Repos\BlazorApp23\BlazorApp23\obj\Debug\net9.0\BlazorApp23.GlobalUsings.g.cs [ZlEjOZlSyQYJ1ySSwx7EMpDKChOJKfw/bHVKjxGXxAA=]
dotnet watch ⌚ Document: E:\Repos\BlazorApp23\BlazorApp23\obj\Debug\net9.0.NETCoreApp,Version=v9.0.AssemblyAttributes.cs [nnZJnE5ctiOtSInqqZsaU9nJcO/PkC2LCW54oZ7kKF0=]
dotnet watch ⌚ Document: E:\Repos\BlazorApp23\BlazorApp23\obj\Debug\net9.0\BlazorApp23.AssemblyInfo.cs [36+WNuottJ7aWGCizlamAH4rn9Ft5AVXe2sJNyLxgpU=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\App.razor [ymn7wWHAEw1teDFyi+/JdauxewRJGicbxJJmJhBVVDs=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Pages\Counter.razor [zPX+O2jqJIxAjLC43xy8X1Kmteng1D1Um6BH1aPgnqQ=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Pages\Weather.razor [yjCXVZ845ZughmoNavBbkZ3msSyLphlQGPXo9ui1LK4=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23_Imports.razor [abNtBFKXN7lVzS7v5lrpGTO6um6Nwom9FasKmw8imYo=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Layout\MainLayout.razor [k9S5QPLOIo4nCwc2jlT21Dn/xEvDEJYnQyVVjmXSFX8=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Layout\NavMenu.razor [QF7r4QQnOF2cqrh6tA88J3J6H4B6BuOQvZarPGw4uEI=]
dotnet watch ⌚ Additional: E:\Repos\BlazorApp23\BlazorApp23\Pages\Home.razor [RThHbz06GUOFO8LtbXebrDbW21o=]
dotnet watch ⌚ Config: E:\Repos\BlazorApp23\BlazorApp23\obj\Debug\net9.0\BlazorApp23.GeneratedMSBuildEditorConfig.editorconfig [+98UmvxQLh9pS4xBOQ6sM2+vf57tYL7gBFIjlkGRKUY=]
dotnet watch ⌚ Config: C:\Program Files\dotnet\sdk\9.0.101\Sdks\Microsoft.NET.Sdk\analyzers\build\config\analysislevel_9_default.globalconfig [ZRFi6tgci8t+nmaiOxtng/+Dca1YjDn+JWY1//eQ7FQ=]
dotnet watch ⌚ File added: .\Pages\hfwnjnc5.z2b~
dotnet watch ⌚ File deleted: .\Pages\Home.razor
dotnet watch 🔥 Hot reload capabilities: Baseline AddMethodToExistingType AddStaticFieldToExistingType NewTypeDefinition ChangeCustomAttributes AddInstanceFieldToExistingType GenericAddMethodToExistingType GenericUpdateMethod UpdateParameters GenericAddFieldToExistingType.
dotnet watch ⌚ Updating diagnostics in the browser.
dotnet watch 🔥 [BlazorApp23 (net9.0)] Hot reload succeeded.
dotnet watch ⌚ [BlazorApp23 (net9.0)] Refreshing browser.
dotnet watch 🔥 Hot reload change handled in 784ms.
dotnet watch ⌚ Waiting for changes

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI
Projects
None yet
Development

No branches or pull requests

1 participant