Skip to content
DocsTry Aspire
DocsTry

BlazorWasmAppResource Properties

ClassProperties3 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.
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; }