Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddBlazorWasmProject

Method
📦 Aspire.Hosting.Blazor v17.0.0-preview.1.26565.2
func (DistributedApplicationBuilder) AddBlazorWasmProject(
name string,
projectPath string,
) BlazorWasmAppResource

Signature

methodAddBlazorWasmProjectbuilder
Registers a Blazor WebAssembly project as a resource without launching it as a process. Prefer AddBlazorWasmProject<TProject> which uses IProjectMetadata for path discovery.
AddBlazorWasmProject(
name string,
projectPath string,
) BlazorWasmAppResource
namestring
projectPathstring
BlazorWasmAppResource

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder