Skip to content
Docs Try Aspire

MauiProjectResource

Class net10.0
📦 Aspire.Hosting.Maui v13.1.2-preview.1.26125.13
Represents a .NET MAUI project resource in the distributed application model.
namespace Aspire.Hosting.Maui;
public class MauiProjectResource
: Aspire.Hosting.ApplicationModel.Resource
{
// ...
}
Resource
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.