Skip to content

[AspireE2E]After adding the Maui Aspire integration, rebuilding the myapp-windows project with error "Rebuilder resource for 'myapp-windows' not found." #15431

@EmilyFeng97

Description

@EmilyFeng97

REGRESSION INFO: New feature changes on Aspire.ProjectTemplates 13.2

INSTALL STEPS

  1. Clean machine: Windows 25h2 x64
  2. Install SDK 10.0.201
  3. Add feed
  4. Install Aspire.ProjectTemplate:
    dotnet new install Aspire.ProjectTemplates@13.2.0 --force

REPRO STEPS

  1. Open a normal Command Prompt
  2. Install the MAUI workload:
    dotnet workload install maui
  3. create an Aspire starter App project and go to the project
    aspire new aspire-starter -o AspireWithMaui
    cd AspireWithMaui
    
  4. Create a .NET MAUI Blazor Hybrid App project:
    dotnet new maui-blazor -o AspireWithMaui.MauiClient
  5. Add the maui project to the soultion.
    dotnet sln add AspireWithMaui.MauiClient/AspireWithMaui.MauiClient.csproj
  6. Go to AspireStarterApp.AppHost project, add MAUI integration
    cd AspireWithMaui.AppHost
    aspire add Aspire.Hosting.Maui --version <aspire version>
    
  7. 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);
    
  8. Run the Aspire project:
    aspire run
  9. Open the Dashboard URL in browser
  10. Click the start button of the maui project
  11. 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."
Image

Console logs:
Image

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

Error Info

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions