-
Notifications
You must be signed in to change notification settings - Fork 854
[AspireE2E]After adding the Maui Aspire integration, rebuilding the myapp-windows project with error "Rebuilder resource for 'myapp-windows' not found." #15431
Copy link
Copy link
Open
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationarea-dashboard
Description
REGRESSION INFO: New feature changes on Aspire.ProjectTemplates 13.2
INSTALL STEPS
- Clean machine: Windows 25h2 x64
- Install SDK 10.0.201
- Add feed
- Install Aspire.ProjectTemplate:
dotnet new install Aspire.ProjectTemplates@13.2.0 --force
REPRO STEPS
- Open a normal Command Prompt
- Install the MAUI workload:
dotnet workload install maui - create an Aspire starter App project and go to the project
aspire new aspire-starter -o AspireWithMaui cd AspireWithMaui - Create a .NET MAUI Blazor Hybrid App project:
dotnet new maui-blazor -o AspireWithMaui.MauiClient - Add the maui project to the soultion.
dotnet sln add AspireWithMaui.MauiClient/AspireWithMaui.MauiClient.csproj - Go to AspireStarterApp.AppHost project, add MAUI integration
cd AspireWithMaui.AppHost aspire add Aspire.Hosting.Maui --version <aspire version> - Open the AppHost.cs file of AspireWithMaui.AppHost project, add the following code:
// Add the .NET MAUI project resource var mauiapp = builder.AddMauiProject("myapp", @"../AspireWithMaui.MauiClient/AspireWithMaui.MauiClient.csproj"); // Add MAUI app for Windows mauiapp.AddWindowsDevice() .WithReference(apiService); - Run the Aspire project:
aspire run - Open the Dashboard URL in browser
- Click the start button of the maui project
- After the Maui project starts successfully, click the Rebuild button for the Maui project.
ACTUAL
Maui project rebuild failed with error "Rebuilder resource for 'myapp-windows' not found."

The rebuilder resource is missing from the myapp-windows project in the Dashboard.

Error Info
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationarea-dashboard
