Skip to content
Docs Try Aspire

MauiProjectResource Constructors

Class Constructors 1 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)
{
// ...
}
}
name string The name of the resource.
projectPath string The 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.