# MauiProjectResource

- Kind: `class`
- Package: [Aspire.Hosting.Maui](/reference/api/csharp/aspire.hosting.maui.md)
- Version: `13.4.0-preview.1.26281.18`
- Namespace: `Aspire.Hosting.Maui`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Maui/MauiProjectResource.cs)
- Inherits: `Resource`

Represents a .NET MAUI project resource in the distributed application model.

## Definition

```csharp
namespace Aspire.Hosting.Maui;

public class MauiProjectResource
    : Aspire.Hosting.ApplicationModel.Resource
{
    // ...
}
```

## Remarks

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.

## Constructors

- [MauiProjectResource(string, string)](/reference/api/csharp/aspire.hosting.maui/mauiprojectresource/constructors.md#constructor-string-string) -- Represents a .NET MAUI project resource in the distributed application model.

## Properties

- [ProjectPath](/reference/api/csharp/aspire.hosting.maui/mauiprojectresource/properties.md#projectpath) : `string` `get` -- Gets the path to the .NET MAUI project file.
