# MauiProjectResource

- Kind: `class`
- Package: [Aspire.Hosting.Maui](/reference/api/csharp/aspire.hosting.maui.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Maui`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/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.
