Skip to content
DocsTry Aspire
DocsTry

MauiProjectResource Constructors

ClassConstructors1 member
Represents a .NET MAUI project resource in the distributed application model.
Represents a .NET MAUI project resource in the distributed application model.
public class MauiProjectResource
{
public MauiProjectResource(
string name,
string projectPath)
{
// ...
}
}
namestringThe name of the resource.
projectPathstringThe path to the .NET MAUI project file.
This resource serves as a parent for platform-specific MAUI resources (Windows, Android, iOS, macOS). Use extension methods like AddWindowsDevice or AddMacCatalystDevice to add platform-specific instances.

MAUI projects are built on-demand when the platform-specific resource is started, avoiding long AppHost startup times while still allowing incremental builds during development.