Watch Aspire live streamsDocsTry Aspire

BlazorWasmAppResource Properties

ClassProperties4 members
A resource representing a Blazor WebAssembly application project. This is not a running process — it's metadata about a WASM project whose static web assets are served through a Gateway. Implements IResourceWithEnvironment so that WithReference() can be used to declare service dependencies (the annotations are read at orchestration time). Implements IResourceWithParent so that the orchestrator mirrors the gateway's lifecycle state (Running, Stopped, etc.) to this child resource automatically.
DebuggerBrowserSection titled DebuggerBrowserstring
Gets the browser launched when starting a debug session for this app. Defaults to "msedge". Configure it with BlazorGatewayExtensions.WithBlazorDebuggerBrowser.
public string DebuggerBrowser { get; }
ParentSection titled ParentIResource
Gets the parent gateway resource whose lifecycle state is mirrored to this resource. Set internally when BlazorGatewayExtensions.WithBlazorClientApp associates this WASM app with a gateway.
public IResource Parent { get; }
ProjectDirectorySection titled ProjectDirectorystring
Directory containing the .csproj file.
public string ProjectDirectory { get; }
Fully-qualified path to the .csproj file.
public string ProjectPath { get; }