Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddWindowsDevice

Method
📦 Aspire.Hosting.Maui v17.0.0-preview.1.26565.2
func (MauiProjectResource) AddWindowsDevice(name string) MauiWindowsPlatformResource

Signature

methodAddWindowsDevicebuilder
Adds a Windows device resource to run the MAUI application on the Windows platform with a specific name.
AddWindowsDevice(name string) MauiWindowsPlatformResource
namestringThe name of the Windows device resource.
MauiWindowsPlatformResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: