microsoft / microsoft/aspire

Include a generic extension method to add a .NET MAUI project to the Aspire orchestration pipeline

Open
#13,033 1 comment 2 reactions 0 assignees View on GitHub
area-tooling
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

* Include a generic extension method to add a .NET MAUI project to the Aspire orchestration pipeline.
* This will make it easier to use the project without keeping the relative path in the source file and will help in managing the .NET MAUI project as a project reference.
* So that dotnet project commands can be used to restore, build, and run.

### Describe the solution you'd like

Before:

```cs
var mauiapp = builder.AddMauiProject("mauiapp", @"..\MauiApp1\MauiApp1.csproj");
// Continue configuring
```

After:

```cs
// MauiApp1 is a project reference to the Aspire App Host project
var mauiapp = builder.AddMauiProject("mauiapp");
// Continue configuring
```

### Additional context

The `ProjectPath` will have to be referenced from the source-generated property later on.

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.