dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
3.74k stars 432 forks source link

[WebToolsE2E][Aspire] Run a Blazor Web App ~ WebAssembly project with Aspire checked, click Restart in the dashboard, the restart is successful but a new blank page is opened. #5978

Open v-reinawang opened 2 weeks ago

v-reinawang commented 2 weeks ago

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Run preinstall
  3. Install Dev17.12 Preview 3 [35326.43.main]
  4. Install Aspire 9.0.0-preview.4.24476.9

REPRO STEPS

  1. File > New project > Blazor Web App > Interactive render mode: WebAssembly > Interactivity location: Per page/component > Check 'Enlist in .NET Aspire orchestration' > create
  2. Build and run
  3. On the dashboard, click 'Restart' option behind the blazorapp resource

Note: This is a new feature for Aspire 9.0 P4

ACTUAL The restart was successful, but a blank new page opened. image

EXPECTED The restart was successful and a normal new page was opened.

DamianEdwards commented 1 week ago

I think this is the known VS behavior for debugging Blazor WebAssembly apps right?

v-elenafeng commented 1 week ago

Yes, this is the exact behavior for debugging Blazor WebAssembly apps, but a new blank page launches every time I stop/start the project.