Aspire.Hosting.Blazor 13.6.4-preview.1.26523.11

Prefix Reserved
This is a prerelease version of Aspire.Hosting.Blazor.
dotnet add package Aspire.Hosting.Blazor --version 13.6.4-preview.1.26523.11
                    
NuGet\Install-Package Aspire.Hosting.Blazor -Version 13.6.4-preview.1.26523.11
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspire.Hosting.Blazor" Version="13.6.4-preview.1.26523.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspire.Hosting.Blazor" Version="13.6.4-preview.1.26523.11" />
                    
Directory.Packages.props
<PackageReference Include="Aspire.Hosting.Blazor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Aspire.Hosting.Blazor --version 13.6.4-preview.1.26523.11
                    
#r "nuget: Aspire.Hosting.Blazor, 13.6.4-preview.1.26523.11"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Aspire.Hosting.Blazor@13.6.4-preview.1.26523.11
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Aspire.Hosting.Blazor&version=13.6.4-preview.1.26523.11&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Aspire.Hosting.Blazor&version=13.6.4-preview.1.26523.11&prerelease
                    
Install as a Cake Tool

Blazor hosting integration

Use this integration to model, configure, and orchestrate Blazor WebAssembly applications and a Blazor Gateway in an Aspire solution.

Getting started

Prerequisites

An existing Blazor WebAssembly project and any backend API projects it calls. The example below assumes the API exposes an endpoint named http.

Add the integration

From your AppHost directory, add the Aspire.Hosting.Blazor integration with the Aspire CLI:

aspire add Aspire.Hosting.Blazor

The Blazor gateway APIs are experimental. C# callers must opt in by suppressing ASPIREBLAZOR001, as shown below.

Usage example

Then, in the AppHost, add a Blazor WebAssembly resource, reference its backend API, and attach it to a gateway with either C# or TypeScript. For the C# example, add project references to ApiService and BlazorApp from the AppHost.

C#

#pragma warning disable ASPIREBLAZOR001

var builder = DistributedApplication.CreateBuilder(args);

var api = builder.AddProject<Projects.ApiService>("api");

var blazor = builder.AddBlazorWasmProject<Projects.BlazorApp>("web")
    .WithReference(api);

builder.AddBlazorGateway("gateway")
    .WithBlazorClientApp(blazor)
    .WithExternalHttpEndpoints();

builder.Build().Run();

#pragma warning restore ASPIREBLAZOR001

TypeScript

import { createBuilder } from "./.aspire/modules/aspire.mjs";

const builder = await createBuilder();

const api = await builder.addProject("api", "../ApiService/ApiService.csproj");

const blazor = await builder.addBlazorWasmProject("web", "../BlazorApp/BlazorApp.csproj")
    .withReference(await api.getEndpoint("http"));

await builder.addBlazorGateway("gateway")
    .withBlazorClientApp(blazor)
    .withExternalHttpEndpoints();

await builder.build().run();

The gateway serves the client app at /web/ and proxies requests to its referenced APIs. No separate gateway project is required.

Additional documentation

Feedback & contributing

https://github.com/microsoft/aspire

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.6.4-preview.1.26523.11 253 10/24/2026
13.6.3-preview.1.26521.2 223 10/21/2026
13.6.2-preview.1.26519.11 169 10/20/2026
13.6.1-preview.1.26506.6 1,113 10/7/2026
13.6.0-preview.1.26479.8 1,393 9/29/2026
13.5.4-preview.1.26464.4 1,652 9/15/2026
13.5.3-preview.1.26425.3 1,205 8/25/2026
13.5.2-preview.1.26421.6 265 8/21/2026
13.5.1-preview.1.26420.4 109 8/20/2026
13.5.0-preview.1.26417.10 280 8/18/2026
13.4.6-preview.1.26319.6 3,115 6/19/2026
13.4.5-preview.1.26316.12 368 6/17/2026
13.4.4-preview.1.26314.3 394 6/15/2026
13.4.3-preview.1.26305.13 136 6/8/2026
13.4.2-preview.1.26303.6 180 6/3/2026
13.4.1-preview.1.26303.3 93 6/3/2026
13.4.0-preview.1.26281.18 120 6/1/2026