dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.93k stars 480 forks source link

[WebToolsE2E][Aspire] In VSCode/CLI, update the TargetFramework of the Aspire project from net9.0 to net10.0. After running the project, the dashboard page is blank. #6765

Open v-reinawang opened 3 days ago

v-reinawang commented 3 days ago

INSTALL STEPS

  1. Install SDK 10.0 [10.0.100-alpha.1.24571.14]
  2. dotnet nuget add source "dotnet10"
  3. Install Aspire 9.0 template
    • Run dotnet new install Aspire.ProjectTemplates::9.0.0

REPRO STEPS

  1. Open CMD, run following command to create an Aspire Starter App project
    dotnet new aspire-starter -o aspire1
    cd aspire1/aspire1.AppHost
  2. Manually update the TargetFramework of all projects from net9.0 to net10.0
  3. Use dotnet run to run the project

NOTE: In Visual Studio, update the TargetFramework of the Aspire project from net9.0 to net10.0 and run the project. The dashboard can be displayed normally.

ACTUAL Aspire dashboard page is blank. Image

EXPECTED Aspire dashboard page can be displayed normally.