Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddMauiProject

Method
📦 Aspire.Hosting.Maui v17.0.0-preview.1.26565.2
func (DistributedApplicationBuilder) AddMauiProject(
name string,
projectPath string,
) MauiProjectResource

Signature

methodAddMauiProjectbuilder
Adds a .NET MAUI project to the application model. This resource can be used to create platform-specific resources.
AddMauiProject(
name string,
projectPath string,
) MauiProjectResource
namestringThe name of the resource.
projectPathstringThe path to the .NET MAUI project file (.csproj). This can be a relative or absolute path.
MauiProjectResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder