dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.32k stars 4.74k forks source link

[browser] Watch doesn't rebuild the application #101237

Open maraf opened 7 months ago

maraf commented 7 months ago

Using dotnet watch run doesn't work with wasmbrowser template

PS samples WasmBrowserNew> dotnet watch run
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 πŸ”§ Building...
Restore complete (0.5s)
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
  WasmBrowserNew succeeded (2.3s) β†’ bin\Debug\net9.0\WasmBrowserNew.dll

Build succeeded in 3.0s
dotnet watch πŸš€ Started
WasmAppHost --use-staticwebassets --runtime-config ...\WasmBrowserNew.runtimeconfig.json

App url: http://localhost:5056/
App url: https://localhost:7231/
Debug at url: http://localhost:5056/_framework/debug
Debug at url: https://localhost:7231/_framework/debug
dotnet watch ⌚ Connecting to the browser is taking longer than expected ...
dotnet watch ⌚ Connecting to the browser is taking longer than expected ...
dotnet watch ⌚ File changed: .\Program.cs.
dotnet watch ⌚ Connecting to the browser is taking longer than expected ...
dotnet watch ⌚ Connecting to the browser is taking longer than expected ...
dotnet watch πŸ›‘ Shutdown requested. Press Ctrl+C again to force exit.
dotnet-policy-service[bot] commented 7 months ago

Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.