Skip to content
Docs Try Aspire

Aspire.Hosting.Maui

Official
📦 Aspire.Hosting.Maui v13.2.0-preview.1.26159.1
14 Functions
8 Types

Types

Functions

function addAndroidDevice builder
Adds an Android device resource for a .NET MAUI project.
addAndroidDevice(name: string, deviceId?: string): MauiAndroidDeviceResource
function addAndroidEmulator builder
Adds an Android emulator resource for a .NET MAUI project.
addAndroidEmulator(name: string, emulatorId?: string): MauiAndroidEmulatorResource
function addDevTunnel builder
Adds a Dev Tunnel resource to the distributed application model.
addDevTunnel(name: string, tunnelId?: string): DevTunnelResource
function addiOSDevice builder
Adds an iOS device resource for a .NET MAUI project.
addiOSDevice(name: string, deviceId?: string): MauiiOSDeviceResource
function addiOSSimulator builder
Adds an iOS simulator resource for a .NET MAUI project.
addiOSSimulator(name: string, simulatorId?: string): MauiiOSSimulatorResource
function addMacCatalystDevice builder
Adds a Mac Catalyst platform resource for a .NET MAUI project.
addMacCatalystDevice(name: string): MauiMacCatalystPlatformResource
function addMauiProject builder
Adds a .NET MAUI project to the application model.
addMauiProject(name: string, projectPath: string): MauiProjectResource
function addWindowsDevice builder
Adds a Windows platform resource for a .NET MAUI project.
addWindowsDevice(name: string): MauiWindowsPlatformResource
function getTunnelEndpoint
Gets the public endpoint exposed by the dev tunnel.
getTunnelEndpoint(targetEndpointReference: EndpointReference): EndpointReference
function withAnonymousAccess builder
Configures the dev tunnel to allow anonymous access.
withAnonymousAccess(): DevTunnelResource
function withOtlpDevTunnel builder
Configures a .NET MAUI platform resource to send OpenTelemetry data through a development tunnel.
withOtlpDevTunnel(): IMauiPlatformResource
function withTunnelReference builder
Configures the dev tunnel to expose a target endpoint.
withTunnelReference(targetEndpoint: EndpointReference): DevTunnelResource
function withTunnelReferenceAll builder
Configures the dev tunnel to expose all endpoints on the referenced resource.
withTunnelReferenceAll(resourceBuilder: IResourceWithEndpoints, allowAnonymous: boolean): DevTunnelResource
function withTunnelReferenceAnonymous builder
Configures the dev tunnel to expose a target endpoint with access control.
withTunnelReferenceAnonymous(targetEndpoint: EndpointReference, allowAnonymous: boolean): DevTunnelResource