# Compiler Warning ASPIREBLAZOR001

<Badge
  text="Version introduced: 13.4"
  variant="note"
  size="large"
  class:list={'mb-1'}
/>

> Blazor WebAssembly hosting types and members are for evaluation purposes only and are subject to change or removal in future updates. Suppress this diagnostic to proceed.

This diagnostic warning is reported when using experimental Blazor WebAssembly hosting APIs from the `Aspire.Hosting.Blazor` integration, including:

- `BlazorGatewayExtensions` — `AddBlazorGateway`, `AddBlazorWasmApp`, `AddBlazorWasmProject<TProject>`, and `WithBlazorClientApp`
- `BlazorHostedExtensions` — client wiring for a hosted Blazor Web App
- `BlazorWasmAppResource` — the resource type that represents a Blazor WebAssembly app

## Example

The following code generates `ASPIREBLAZOR001`:

```csharp title="AppHost.cs"
var builder = DistributedApplication.CreateBuilder(args);

var gateway = builder.AddBlazorGateway("gateway");

var store = builder.AddBlazorWasmApp("store", "../Store/Store.csproj");

gateway.WithBlazorClientApp(store);

builder.Build().Run();
```

## To correct this warning

Suppress the warning with one of the following methods:

- Set the severity of the rule in the _.editorconfig_ file.

  ```ini title=".editorconfig"
  [*.{cs,vb}]
  dotnet_diagnostic.ASPIREBLAZOR001.severity = none
  ```

  For more information about editor config files, see [Configuration files for code analysis rules](/diagnostics/overview/#suppress-in-the-editorconfig-file).

- Add the following `PropertyGroup` to your project file:

  ```xml title="C# project file"
  <PropertyGroup>
      <NoWarn>$(NoWarn);ASPIREBLAZOR001</NoWarn>
  </PropertyGroup>
  ```

- Suppress in code with the `#pragma warning disable ASPIREBLAZOR001` directive:

  ```csharp title="Suppressing the warning"
  #pragma warning disable ASPIREBLAZOR001
  var gateway = builder.AddBlazorGateway("gateway");
  #pragma warning restore ASPIREBLAZOR001
  ```

## See also

- [Blazor hosting integration](/integrations/dotnet/blazor-hosting/) - Learn about hosting Blazor WebAssembly apps
- [Get started with Blazor](/integrations/dotnet/blazor-get-started/) - Add a Blazor WebAssembly app to your AppHost