# BlazorWasmAppResource Properties

- Package: [Aspire.Hosting.Blazor](/reference/api/csharp/aspire.hosting.blazor.md)
- Type: [BlazorWasmAppResource](/reference/api/csharp/aspire.hosting.blazor/blazorwasmappresource.md)
- Kind: `Properties`
- Members: `3`

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

- Name: `Parent`
- Modifiers: `get`
- Returns: `IResource`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Blazor/Resources/BlazorWasmAppResource.cs)

Gets the parent gateway resource whose lifecycle state is mirrored to this resource. Set internally when [BlazorGatewayExtensions.WithBlazorClientApp(IResourceBuilder<ProjectResource>, IResourceBuilder<BlazorWasmAppResource>, string, string, bool)](/reference/api/csharp/aspire.hosting.blazor/blazorgatewayextensions/methods.md#withblazorclientapp-iresourcebuilder-projectresource-iresourcebuilder-blazorwasmappresource-string-string-bool) associates this WASM app with a gateway.

```csharp
public IResource Parent { get; }
```

## ProjectDirectory

- Name: `ProjectDirectory`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Blazor/Resources/BlazorWasmAppResource.cs#L26)

Directory containing the .csproj file.

```csharp
public string ProjectDirectory { get; }
```

## ProjectPath

- Name: `ProjectPath`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Blazor/Resources/BlazorWasmAppResource.cs#L23)

Fully-qualified path to the .csproj file.

```csharp
public string ProjectPath { get; }
```
