# addBlazorWasmProject

- Module: [Aspire.Hosting.Blazor](/reference/api/typescript/aspire.hosting.blazor.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Registers a Blazor WebAssembly project as a resource without launching it as a process. Prefer AddBlazorWasmProject<TProject> which uses IProjectMetadata for path discovery.

## Definition

```typescript
interface IDistributedApplicationBuilder {
  // ... omitted for brevity
  addBlazorWasmProject(
    name: string,
    projectPath: string): BlazorWasmAppResource
}
```

## Parameters

- `name` (`string`)
- `projectPath` (`string`)

## Returns

[BlazorWasmAppResource](/reference/api/typescript/aspire.hosting.blazor/blazorwasmappresource.md) `builder`

## Applies to

- [IDistributedApplicationBuilder](/reference/api/typescript/aspire.hosting.blazor/idistributedapplicationbuilder.md)
