Skip to content

[WebToolsE2E] Using VS Code C# Dev Kit, when adding a web project to an Aspire solution and then adding the web project to .NET Aspire Orchestration, it does not add to the existing Orchestration but creates a new one. #7973

Open
@v-elenafeng

Description

@v-elenafeng

REGRESSION INFO: Not a regression

INSTALL STEPS

  1. Clean machine: Win11 x64 ENU
  2. Install SDK 9.0.200 (latest-released-version)
  3. Install Aspire templates 9.1 (latest-released-version)
    • dotnet new install Aspire.ProjectTemplates
  4. Install VS Code + C# Dev Kit extension (latest pre-release version 1.17.48)

REPRO STEPS

  1. Using VS Code, create new 9.0 .NET Aspire Starter App > AspireApp1
  2. In Solution Explorer, right-click solution node > New Project > 9.0 ASP.NET Web App (Razor Pages) > WebApplication1 > Default directory > Create
  3. In Solution Explorer, right-click solution node > Add .NET Aspire Orchestration > select WebApplication1 as the project to be orchestrated.
  4. For the names of AppHost and ServiceDefaults projects, set the values to be WebApplication1.AppHost and WebApplication1.ServiceDefaults.

ACTUAL
WebApplication1.AppHost and WebApplication1.ServiceDefaults are created instead of being added to the existing Orchestration.

Image

EXPECTED
Similar to what VS does, AspireApp1.AppHost will be updated to add WebApplication1 to it.

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-toolingvs-codeIssues related to vs code tooling for aspire

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions