[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.
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
**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
1. Create .NET MAUI App 8.0 and build
1. Right click the project > Add ".NET Aspire Orchestrator Support" > Build
**ACTUAL**
error MSB4057: The target "GetTargetPath" does not exist in the project.

This issue also reproduces with "Only Maui workload"
**EXPECTED**
The .NET MAUI App can be built successfully with ".NET Aspire Orchestrator Support".
Contributor guide
Assessment
This issue has not been assessed yet.