microsoft / microsoft/aspire

[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.

Open
#3,043 12 comments 5 reactions 0 assignees View on GitHub
area-app-model
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.
![image](https://github.com/dotnet/aspire/assets/78580199/fabef1a6-580d-4701-9405-4b68e9a5f1a8)

This issue also reproduces with "Only Maui workload"

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.