Description
REGRESSION INFO: Not a regression
INSTALL STEPS
- Clean machine: Win11 x64 ENU
- Install SDK 9.0.200 (latest-released-version)
- Install Aspire templates 9.1 (latest-released-version)
dotnet new install Aspire.ProjectTemplates
- Install VS Code + C# Dev Kit extension (latest pre-release version 1.17.48)
REPRO STEPS
-
Using VS Code, create new 9.0 ASP.NET Web App (Razor Pages) >
WebAppRp01
-
In Solution Explorer, right-click solution node > Add .NET Aspire Orchestration > select WebAppRp01 as the project to be orchestrated
-
For the names of AppHost and ServiceDefaults projects, set the values to be
WebAppRp01.AppHost
andWebAppRp01.ServiceDefaults
.
ACTUAL
Aspire orchestration support gets added but it is incomplete
-
In the Program.cs of
WebAppRp01.AppHost
, the critical line of adding the web app project to the IDistributedApplicationBuilder is missing. Without this line, the dashboard will be blank when we run the AppHost. -
In the Program.cs of
WebAppRp01.AppHost
, the lines ofbuilder.AddServiceDefaults
andbuilder.MapDefaultEndpoints
are missing
EXPECTED
Missing orchestration support code should get properly added