Rask.Spa.Hosting
0.23.1-alpha.0.85
See the version list below for details.
dotnet add package Rask.Spa.Hosting --version 0.23.1-alpha.0.85
NuGet\Install-Package Rask.Spa.Hosting -Version 0.23.1-alpha.0.85
<PackageReference Include="Rask.Spa.Hosting" Version="0.23.1-alpha.0.85" />
<PackageVersion Include="Rask.Spa.Hosting" Version="0.23.1-alpha.0.85" />
<PackageReference Include="Rask.Spa.Hosting" />
paket add Rask.Spa.Hosting --version 0.23.1-alpha.0.85
#r "nuget: Rask.Spa.Hosting, 0.23.1-alpha.0.85"
#:package Rask.Spa.Hosting@0.23.1-alpha.0.85
#addin nuget:?package=Rask.Spa.Hosting&version=0.23.1-alpha.0.85&prerelease
#tool nuget:?package=Rask.Spa.Hosting&version=0.23.1-alpha.0.85&prerelease
Rask.Spa.Hosting
ASP.NET Core host for a built single-page app — a TypeScript front end from any bundler (React, Preact, Vue, Solid, Svelte, Lit, Angular) or a Rask WebAssembly app written in C#. Part of Rask, a full-stack .NET web framework for teams of any size.
- One call serves the build output with correct MIME types, cache headers that follow what the build
guarantees (content-hashed assets cached hard,
index.htmlnever cached), precompressed siblings, and a SPA fallback that still answers 404 for a missing asset. - A Rask WebAssembly app is a SPA too. Reference the client project and the host's build publishes it;
MapRaskSparecognises the bundle and serves the runtime files with the right types and compression. - Pairs with Rask.Cqrs.Server, which gives the client a typed JSON wire and generates its TypeScript from your C# message records.
- Depends on nothing else in Rask.
Install
dotnet add package Rask.Spa.Hosting
Or scaffold a host with its client: rask new Shop --template react (or preact, vue, solid, svelte,
lit, angular, 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: TypeScript front ends
| Product | Versions 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. net11.0 is compatible. |
-
net10.0
- No dependencies.
-
net11.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, PostgreSQL or SQL Server, 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.23.1-alpha.0.103 | 21 | 9/29/2026 |
| 0.23.1-alpha.0.100 | 24 | 9/29/2026 |
| 0.23.1-alpha.0.98 | 26 | 9/29/2026 |
| 0.23.1-alpha.0.96 | 22 | 9/29/2026 |
| 0.23.1-alpha.0.95 | 27 | 9/29/2026 |
| 0.23.1-alpha.0.93 | 24 | 9/29/2026 |
| 0.23.1-alpha.0.92 | 26 | 9/29/2026 |
| 0.23.1-alpha.0.91 | 33 | 9/28/2026 |
| 0.23.1-alpha.0.90 | 26 | 9/29/2026 |
| 0.23.1-alpha.0.89 | 38 | 9/28/2026 |
| 0.23.1-alpha.0.88 | 25 | 9/29/2026 |
| 0.23.1-alpha.0.87 | 37 | 9/28/2026 |
| 0.23.1-alpha.0.86 | 33 | 9/28/2026 |
| 0.23.1-alpha.0.85 | 38 | 9/28/2026 |
| 0.23.1-alpha.0.83 | 41 | 9/28/2026 |
| 0.23.1-alpha.0.82 | 57 | 9/25/2026 |
| 0.23.1-alpha.0.81 | 47 | 9/25/2026 |
| 0.23.1-alpha.0.80 | 46 | 9/25/2026 |
| 0.23.1-alpha.0.77 | 34 | 9/28/2026 |
| 0.23.0 | 180 | 9/18/2026 |