Watch Aspire live streamsDocsTry Aspire

Aspire.Hosting.Maui

Official
📦 Aspire.Hosting.Mauiv13.6.0-preview.1.26478.8
8Functions
7Types

Types

Functions

methodaddAndroidDevicebuilder
Adds an Android physical device resource to run the MAUI application on an Android device with a specific name and device ID.
addAndroidDevice(name: string, deviceId?: string): MauiAndroidDeviceResource
methodaddAndroidEmulatorbuilder
Adds an Android emulator resource to run the MAUI application on an Android emulator with a specific name.
addAndroidEmulator(name: string, emulatorId?: string): MauiAndroidEmulatorResource
methodaddiOSDevicebuilder
Adds an iOS physical device resource to run the MAUI application on an iOS device with a specific name and device UDID.
addiOSDevice(name: string, deviceId?: string): MauiiOSDeviceResource
methodaddiOSSimulatorbuilder
Adds an iOS simulator resource to run the MAUI application on an iOS simulator with a specific name and simulator UDID.
addiOSSimulator(name: string, simulatorId?: string): MauiiOSSimulatorResource
methodaddMacCatalystDevicebuilder
Adds a Mac Catalyst device resource to run the MAUI application on the macOS platform with a specific name.
addMacCatalystDevice(name: string): MauiMacCatalystPlatformResource
methodaddMauiProjectbuilder
Adds a .NET MAUI project to the application model. This resource can be used to create platform-specific resources.
addMauiProject(name: string, projectPath: string): MauiProjectResource
methodaddWindowsDevicebuilder
Adds a Windows device resource to run the MAUI application on the Windows platform with a specific name.
addWindowsDevice(name: string): MauiWindowsPlatformResource
methodwithOtlpDevTunnelbuilder
Configures the MAUI platform resource to send OpenTelemetry data through an automatically created dev tunnel. This is the easiest option for most scenarios, as it handles tunnel creation, configuration, and endpoint injection automatically.
withOtlpDevTunnel(): IMauiPlatformResource