[AspireE2E]After adding the Maui Aspire integration, rebuilding the myapp-windows project with error "Rebuilder resource for 'myapp-windows' not found."
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
**REGRESSION INFO:** New feature changes on Aspire.ProjectTemplates 13.2
**INSTALL STEPS**
1. Clean machine: Windows 25h2 x64
1. Install SDK 10.0.201
1. Add feed
1. 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`
2. 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
```
8. 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);
```
9. Run the Aspire project:
`aspire run`
1. Open the Dashboard URL in browser
2. Click the start button of the maui project
3. 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."
**Console logs:**
The rebuilder resource is missing from the myapp-windows project in the Dashboard.
**Error Info**
Contributor guide
Assessment
This issue has not been assessed yet.