Rask.Wasm 0.24.0

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

Rask.Wasm

The browser runtime for Rask, a full-stack .NET web framework for teams of any size. It runs a Rask app's C# components client-side on .NET WebAssembly — the same components, chain markup and router as the server host — and publishes to a static folder any web server or CDN can serve.

  • Ships the JS boot scripts, the page shell, and the MSBuild integration that stages them into the published bundle.
  • Depends on Rask, the shared core (components, the chain, routing, forms, scoped CSS/TypeScript, the generators), and brings the trim-safe client batteries on by default: the mediator and query cache, remote dispatch, accounts, validation and the Rask.Ui kit. host.Configure(c => c.Query.Off()) is how an app does without one.
  • Opt in with <RaskPrerender>true</RaskPrerender> and every route is prerendered to real HTML at publish, with a sitemap.xml, so visitors and crawlers get the page instead of a boot spinner. host.UseCulture(c => c.UrlPrefix = true) publishes every page once per language (/rolunk, /en/rolunk), each in its own, with hreflang alternates in the page and the sitemap.

Install

dotnet add package Rask.Wasm

Or scaffold one with the CLI — rask new Shop --template wasm (a static site) or --template wasm-hosted (a browser app with an ASP.NET host beside it).

Use

// Program.cs
var host = WasmHostBuilder.CreateDefault();
await host.Run<App>();   // App is your root component; its Render() returns Router
[Route("/")]
public sealed partial class Home : Component
{
    int _count;

    protected override Component? Render() =>
        Div[
            H1["Hello from WebAssembly"],
            Button.OnClick(() => _count++)[$"Clicked {_count} times"]
        ];
}

The WebAssembly build tooling is a one-time install: dotnet workload install wasm-tools.

Guides: getting started · prerendering · Mobile & PWA

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible.  net11.0-browser1.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

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

Package Downloads
Rask.Wasm.Hosting

ASP.NET helper for serving a Rask WASM AppBundle as a SPA. `app.UseRask()` mounts the published bundle with the right MIME types, no-cache revalidation, and a SPA fallback so client-side routes resolve. Depends on Rask.Wasm.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.24.1-alpha.0.249 0 11/23/2026
0.24.1-alpha.0.246 0 11/23/2026
0.24.1-alpha.0.243 0 11/23/2026
0.24.1-alpha.0.242 39 11/22/2026
0.24.1-alpha.0.241 42 11/21/2026
0.24.1-alpha.0.240 39 11/21/2026
0.24.1-alpha.0.239 46 11/20/2026
0.24.1-alpha.0.237 44 11/20/2026
0.24.1-alpha.0.236 48 11/20/2026
0.24.1-alpha.0.156 46 11/20/2026
0.24.1-alpha.0.155 44 11/20/2026
0.24.1-alpha.0.154 50 11/19/2026
0.24.1-alpha.0.149 49 11/18/2026
0.24.1-alpha.0.145 45 11/18/2026
0.24.1-alpha.0.141 51 11/18/2026
0.24.1-alpha.0.140 46 11/18/2026
0.24.1-alpha.0.137 47 11/18/2026
0.24.1-alpha.0.136 46 11/18/2026
0.24.1-alpha.0.102 44 11/18/2026
0.24.0 101 11/16/2026
Loading failed