# MauiWindowsPlatformResource Constructors

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

Represents a Windows platform instance of a .NET MAUI project.

## MauiWindowsPlatformResource(string, MauiProjectResource)

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

Represents a Windows platform instance of a .NET MAUI project.

```csharp
public class MauiWindowsPlatformResource
{
    public MauiWindowsPlatformResource(
        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 Windows platform. The actual build and deployment happens when the resource is started, allowing for incremental builds during development without blocking AppHost startup.

Use [MauiWindowsExtensions.AddWindowsDevice(IResourceBuilder<MauiProjectResource>)](/reference/api/csharp/aspire.hosting.maui/mauiwindowsextensions/methods.md#addwindowsdevice-iresourcebuilder-mauiprojectresource) to add this resource to a MAUI project.
