# MauiMacCatalystPlatformResource Constructors

- Package: [Aspire.Hosting.Maui](/reference/api/csharp/aspire.hosting.maui.md)
- Type: [MauiMacCatalystPlatformResource](/reference/api/csharp/aspire.hosting.maui/mauimaccatalystplatformresource.md)
- Kind: `Constructors`
- Members: `1`

Represents a Mac Catalyst platform instance of a .NET MAUI project.

## MauiMacCatalystPlatformResource(string, MauiProjectResource)

- Name: `Constructor(string, MauiProjectResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Maui/MauiMacCatalystPlatformResource.cs#L23-L28)

Represents a Mac Catalyst platform instance of a .NET MAUI project.

```csharp
public class MauiMacCatalystPlatformResource
{
    public MauiMacCatalystPlatformResource(
        string name,
        MauiProjectResource parent)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `parent` ([MauiProjectResource](/reference/api/csharp/aspire.hosting.maui/mauiprojectresource.md))
  The parent MAUI project resource.

## Remarks

This resource represents a MAUI application running on the Mac Catalyst platform. The actual build and deployment happens when the resource is started, allowing for incremental builds during development without blocking AppHost startup.

Use [MauiMacCatalystExtensions.AddMacCatalystDevice(IResourceBuilder<MauiProjectResource>)](/reference/api/csharp/aspire.hosting.maui/mauimaccatalystextensions/methods.md#addmaccatalystdevice-iresourcebuilder-mauiprojectresource) to add this resource to a MAUI project.
