Skip to content
Docs Try Aspire
Docs Try

addWindowsDevice

Method
📦 Aspire.Hosting.Maui v13.4.0-preview.1.26281.18
interface MauiProjectResource {
// ... omitted for brevity
addWindowsDevice(name: string): MauiWindowsPlatformResource;
}

Signature

method addWindowsDevice builder
Adds a Windows device resource to run the MAUI application on the Windows platform with a specific name.
addWindowsDevice(name: string): MauiWindowsPlatformResource
name string
MauiWindowsPlatformResource

Applies to

This method applies to the following types: