Skip to content

[WebToolsE2E][Aspire] Building a multi-target project from the App Host (e.g., .NET MAUI App with ".NET Aspire Orchestrator Support") fails with error MSB4057: The target "GetTargetPath" does not exist in the project. #3043

@v-elenafeng

Description

@v-elenafeng

REGRESSION INFO

Reproduces with VS 17.10 Preview 3 (Includes Aspire 8.0 P4) + Aspire 8.0 P5

INSTALL STEPS

Clean machine: Win11 x64 23h2 ENU

  1. Install VS 17.10 Preview 3 from VS/main

    • Web Workload + Maui workload
    • Includes Aspire 8.0 Preview 4
    • Includes SDK 8.0.300-preview.24122.6
  2. Create .NET MAUI App 8.0 and build

  3. Right click the project > Add ".NET Aspire Orchestrator Support" > Build

ACTUAL
error MSB4057: The target "GetTargetPath" does not exist in the project.
image

This issue also reproduces with "Only Maui workload"

EXPECTED
The .NET MAUI App can be built successfully with ".NET Aspire Orchestrator Support".

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions