Rask.Spa.Hosting 0.23.1-alpha.0.154

This is a prerelease version of Rask.Spa.Hosting.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Rask.Spa.Hosting --version 0.23.1-alpha.0.154
                    
NuGet\Install-Package Rask.Spa.Hosting -Version 0.23.1-alpha.0.154
                    
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="Rask.Spa.Hosting" Version="0.23.1-alpha.0.154" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rask.Spa.Hosting" Version="0.23.1-alpha.0.154" />
                    
Directory.Packages.props
<PackageReference Include="Rask.Spa.Hosting" />
                    
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 Rask.Spa.Hosting --version 0.23.1-alpha.0.154
                    
#r "nuget: Rask.Spa.Hosting, 0.23.1-alpha.0.154"
                    
#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 Rask.Spa.Hosting@0.23.1-alpha.0.154
                    
#: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=Rask.Spa.Hosting&version=0.23.1-alpha.0.154&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Rask.Spa.Hosting&version=0.23.1-alpha.0.154&prerelease
                    
Install as a Cake Tool

Rask.Spa.Hosting

ASP.NET Core host for a Rask WebAssembly app — the browser app written in C#, served by the same server that answers its API. Part of Rask, a full-stack .NET web framework for teams of any size.

  • One call serves the published bundle with correct MIME types for the .NET runtime files, cache headers that follow what the publish guarantees (content-hashed assets cached hard, index.html never cached), precompressed siblings, and a fallback to index.html that still answers 404 for a missing asset.
  • Reference the client project and the host's build publishes it into wwwroot, where MapRaskSpa finds it with no arguments.
  • Pairs with Rask.Cqrs.Server, which answers the messages the browser app dispatches.
  • Depends on nothing else in Rask.

Install

dotnet add package Rask.Spa.Hosting

Or scaffold a host with its client: rask new Shop --template wasm-hosted.

Use

// Program.cs
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRaskSpaHost();

var app = builder.Build();
// Map your API endpoints FIRST — MapRaskSpa ends the pipeline with a fallback to index.html,
// so anything mapped after it is answered with HTML.
app.MapRaskSpa();
app.Run();

Guide: Serving a WebAssembly app

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Rask.Spa.Hosting:

Package Downloads
Rask.Server

The ASP.NET host for Rask, a full-stack .NET web framework, with every battery: database (SQLite or SQL Server, and PostgreSQL with the Rask.Postgres package, picked by Rask:Database:Provider), mediator and query cache, accounts, background jobs, transactional email, cache, file storage, outbox, operator dashboard, durable logs, Web Push, SQLite snapshots and continuous backup. Renders Rask components with live updates over a WebSocket. RaskApp.Create(args).Run<App>() is the whole Program.cs, and RaskApp.Create(args).Serve() the whole server of a WebAssembly client; app.Configure(c => c.Jobs.Off()) is how an app does without one. Depends on Rask, the shared core.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.24.1-alpha.0.907 0 11/27/2026
0.24.1-alpha.0.902 0 11/27/2026
0.24.1-alpha.0.873 0 11/27/2026
0.24.1-alpha.0.822 0 11/27/2026
0.24.1-alpha.0.782 29 11/27/2026
0.24.1-alpha.0.775 34 11/27/2026
0.24.1-alpha.0.774 38 11/27/2026
0.24.1-alpha.0.770 34 11/27/2026
0.24.1-alpha.0.769 45 11/26/2026
0.24.1-alpha.0.767 38 11/26/2026
0.24.1-alpha.0.766 45 11/26/2026
0.24.1-alpha.0.760 52 11/26/2026
0.24.1-alpha.0.759 45 11/26/2026
0.24.1-alpha.0.757 49 11/26/2026
0.24.1-alpha.0.754 52 11/26/2026
0.24.1-alpha.0.753 45 11/26/2026
0.24.1-alpha.0.752 54 11/26/2026
0.24.1-alpha.0.748 52 11/26/2026
0.24.0 140 11/16/2026
0.23.1-alpha.0.154 61 10/6/2026
Loading failed