Skip to content
DocsTry Aspire
DocsTry

MauiWindowsPlatformResource Constructors

ClassConstructors1 member
Represents a Windows platform instance of a .NET MAUI project.
Constructor(string, MauiProjectResource)Section titled Constructor(string, MauiProjectResource)
Represents a Windows platform instance of a .NET MAUI project.
public class MauiWindowsPlatformResource
{
public MauiWindowsPlatformResource(
string name,
MauiProjectResource parent)
{
// ...
}
}
namestringThe name of the resource.
parentMauiProjectResourceThe parent MAUI project resource.
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 to add this resource to a MAUI project.