Skip to content
Docs Try Aspire
Docs Try

BlazorWasmAppResource Properties

Class Properties 3 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.
Parent Section titled Parent IResource
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; }
ProjectDirectory Section titled ProjectDirectory string
Directory containing the .csproj file.
public string ProjectDirectory { get; }
ProjectPath Section titled ProjectPath string
Fully-qualified path to the .csproj file.
public string ProjectPath { get; }