Rask 0.23.1-alpha.0.76

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

Rask

The shared core of Rask, a full-stack .NET web framework for teams of any size: everything the server host and the browser host have in common.

  • Components in C# — Component, the element chain (Div.Class("panel")[Span["hi"]]), every HTML and SVG element, Text/Raw/Fragment.
  • Routing — [Route], nested layouts, type-safe Routes.X() URLs.
  • Forms — two-way binding, validation, submit state.
  • Typed browser APIs — 50+ wrappers (IGeolocation, IClipboard, IWebPush, …) that work the same on both hosts.
  • Scoped CSS and TypeScript — a Counter.css or Counter.ts beside Counter.cs, compiled by dotnet build.
  • The source generators and analyzers that make the chain and the routes exist.

Install

An application does not reference this package directly — it comes with the host:

dotnet add package Rask.Server   # an ASP.NET app: live pages over a WebSocket, every battery included
dotnet add package Rask.Wasm     # a browser app on .NET WebAssembly

A library of components used by either host references the core alone:

dotnet add package Rask
public sealed partial class ProductCard : Component
{
    public required string Title { get; set; }   // a required step: ProductCard.Title("…")
    public string? Subtitle { get; set; }        // an optional setter

    protected override Component? Render() =>
        Div.Class("card")[H2[Title], Subtitle is null ? null : P[Subtitle]];
}
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-browser1.0 is compatible.  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.  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 (16)

Showing the top 5 NuGet packages that depend on Rask:

Package Downloads
Rask.Wasm

The Rask browser host: runs a Rask app's C# components client-side on .NET WebAssembly, with the client halves of the batteries — the mediator and query cache, remote dispatch, accounts, validation and the component kit — on by default. Ships the JS boot scripts, the page shell, and the MSBuild integration that stages them into the published bundle — and, opted in, prerenders every route to static HTML with a sitemap.xml at publish, so a static host serves real pages to visitors and crawlers. Depends on Rask, the shared core.

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; app.Configure(c => c.Jobs.Off()) is how an app does without one. Depends on Rask, the shared core.

Rask.Validation.FluentValidation

Rask validator that delegates to a `FluentValidation.IValidator`. Writing an `AbstractValidator<T>` is the registration: a source generator finds it at compile time (no assembly scan, trim-safe) and a `Form<T>` over that model validates with it, including async per-field rules. Depends on FluentValidation 12.x.

Rask.Data

A .NET data layer for Entity Framework Core apps where you declare DDD aggregates and nothing else: no DbContext class, no DbSet property, no IEntityTypeConfiguration, no registration, and no IDbContextFactory injected to read a row. `Entity<TId>` carries Id and audit timestamps, and `Aggregate<TId>` adds a Version concurrency token, domain events and opt-in soft delete (`Deletes = Deletion.Soft`); a source generator builds the EF model from every one it finds, so nothing is reflected and a trimmed publish cannot drop a table. Value objects need no marker and map as EF complex types. Reads go through a generated read face (`Product.Read.Where(...)`, `Product.Read.Search(text)`, `Product.Read.AsQueryable()`) via C# 14 static extension members, always untracked, each on its own short-lived context. The generator also writes a nullable form model, `ProductModel`, for every aggregate, with its defaults, `ToModel()` and validation attributes; the generated writes (Product.CreateAsync(model), Product.UpdateAsync(id, model), Product.DeleteAsync(id)) take it, with an optional lambda for values the form does not carry and an optional DbContext to join; anything richer is plain EF Core through an injected context. Strongly-typed ids get a generated value converter, mapping rules live in a static Configure on the type, and interceptors drive audit stamps, opt-in soft delete, multi-tenancy (`Tenancy.PerTenant`, the tenant read from the signed-in user), optimistic concurrency and after-commit domain-event publication through Rask.Cqrs. `Current.UserId` answers who is signed in from code with nothing injected. Ranked full-text search is declared with `HasFullTextSearch` and read with `Product.Read.Search(text)`, on SQLite, PostgreSQL and in the browser. A class that does not derive from Entity stays ordinary EF Core.

Rask.Mail

Durable transactional email for a Rask app, queued on its own database — no broker, no Redis. Compose an email (a Rask component rendered to HTML is the body), call `IMail.SendAsync`, and a background `MailProcessor` delivers it over SMTP (MailKit) — at-least-once, with exponential-backoff retries and dead-lettering, as the tenant it was queued for. Zero-config in development: logs or writes `.eml` files when no SMTP server is set. Server-side; pairs with EF Core.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.23.1-alpha.0.84 104 9/25/2026
0.23.1-alpha.0.82 50 9/25/2026
0.23.1-alpha.0.81 50 9/25/2026
0.23.1-alpha.0.80 52 9/25/2026
0.23.1-alpha.0.79 74 9/25/2026
0.23.1-alpha.0.78 48 9/25/2026
0.23.1-alpha.0.76 69 9/25/2026
0.23.1-alpha.0.74 65 9/25/2026
0.23.1-alpha.0.72 57 9/25/2026
0.23.1-alpha.0.70 51 9/25/2026
0.23.1-alpha.0.69 56 9/25/2026
0.23.1-alpha.0.68 56 9/25/2026
0.23.1-alpha.0.67 58 9/25/2026
0.23.1-alpha.0.66 27 9/24/2026
0.23.1-alpha.0.65 30 9/24/2026
0.23.1-alpha.0.64 28 9/24/2026
0.23.1-alpha.0.62 29 9/24/2026
0.23.1-alpha.0.61 30 9/24/2026
0.23.1-alpha.0.50 32 9/24/2026
0.23.0 87 9/18/2026
Loading failed