Rask.Native
0.20.0
See the version list below for details.
dotnet add package Rask.Native --version 0.20.0
NuGet\Install-Package Rask.Native -Version 0.20.0
<PackageReference Include="Rask.Native" Version="0.20.0" />
<PackageVersion Include="Rask.Native" Version="0.20.0" />
<PackageReference Include="Rask.Native" />
paket add Rask.Native --version 0.20.0
#r "nuget: Rask.Native, 0.20.0"
#:package Rask.Native@0.20.0
#addin nuget:?package=Rask.Native&version=0.20.0
#tool nuget:?package=Rask.Native&version=0.20.0
Rask.Native
Native mobile host for Rask (preview). Ship the same C#
component code that runs on the Rask Server and in the browser as a real, store-distributable
iOS/Android app. It's a WebView hybrid: your C# runs natively on the device, and the UI
renders in a platform WebView driven by Rask's live diff pipeline — the same render → diff → payload
path (LiveSessionBase) the Server and WASM hosts use.
The library is transport-agnostic and targets plain net10.0 (no iOS/Android workloads to build/test);
the platform WebView lives behind the INativeWebView bridge, implemented per platform in the app
head. Includes Rask.Core and the Rask source generators.
Get started
The rask CLI's native template scaffolds both platform heads for you:
dotnet tool install -g Rask.Cli
rask new MyApp --template native
cd MyApp
dotnet workload install ios android # the iOS/Android SDK workloads (one-time)
dotnet build -t:Run -f net10.0-android # Android emulator
dotnet build -t:Run -f net10.0-ios # iOS simulator (macOS + Xcode)
To add the host to an existing app head instead:
dotnet add package Rask.Native
Use
using Rask.Native;
// Native + Local — the app runs in-process on the device (offline, store-distributable).
var host = NativeAppHost.CreateDefault();
// host.Services.AddSingleton<IMyService, MyService>(); // register app services before RunLocalAsync
NativeApp app = await host.RunLocalAsync<App>(webView); // webView: your INativeWebView
// Native + Server — the WebView is a thin native shell over a remote Rask Server (wss://).
NativeServerShell shell = NativeAppHost.ConnectToServer(new Uri("https://app.example.com/"));
Notes
- Preview / pre-1.0 — the host + template + iOS/Android heads run end-to-end; APIs may still shift.
Native device backends have started landing: the OS share sheet (
IShare) has a nativeUIActivityViewController/Intent.ACTION_SENDhead backend (registered beforeRunLocalAsync, overriding the JS default); native geolocation/push/biometrics follow behind the same seam. - WebView hybrid, not a native-control renderer — C# runs native, the view is a WebView (same architecture as MAUI Blazor Hybrid / Capacitor). What it buys over a PWA: App Store / Play Store distribution, native device APIs, and real background execution.
- Native header / tab / tool bars — compose
NativeHeaderBar/NativeTabBar/NativeToolbaras siblings of aNativeWebViewand they project to realUINavigationBar/UITabBar(iOS) and platform bars (Android). Style them with type-safe, dark-mode-awareNativeColor(background / tint / title color) per bar or via an app-wideNativeTheme; unset colors keep the platform default. - The typed
Rask.Core.Browserdevice wrappers (IGeolocation,IClipboard,IVibration, …) work through the WebView's JS engine with no extra code.
Full documentation: https://github.com/pal-tamas/rask/blob/main/docs/native.md
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.AspNetCore.Authorization (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection (>= 10.0.10)
- Microsoft.Extensions.Logging (>= 10.0.10)
- Microsoft.Extensions.ObjectPool (>= 10.0.10)
- Microsoft.Extensions.Primitives (>= 10.0.10)
- Microsoft.JSInterop (>= 10.0.10)
-
net10.0-android36.0
- Microsoft.AspNetCore.Authorization (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection (>= 10.0.10)
- Microsoft.Extensions.Logging (>= 10.0.10)
- Microsoft.Extensions.ObjectPool (>= 10.0.10)
- Microsoft.Extensions.Primitives (>= 10.0.10)
- Microsoft.JSInterop (>= 10.0.10)
-
net10.0-ios26.0
- Microsoft.AspNetCore.Authorization (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection (>= 10.0.10)
- Microsoft.Extensions.Logging (>= 10.0.10)
- Microsoft.Extensions.ObjectPool (>= 10.0.10)
- Microsoft.Extensions.Primitives (>= 10.0.10)
- Microsoft.JSInterop (>= 10.0.10)
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 |
|---|---|---|
| 0.20.1-alpha.0.5 | 0 | 8/7/2026 |
| 0.20.1-alpha.0.4 | 0 | 8/7/2026 |
| 0.20.1-alpha.0.3 | 0 | 8/7/2026 |
| 0.20.1-alpha.0.2 | 0 | 8/6/2026 |
| 0.20.0 | 0 | 8/6/2026 |
| 0.19.1-alpha.0.75 | 0 | 8/6/2026 |
| 0.19.1-alpha.0.74 | 0 | 8/6/2026 |
| 0.19.1-alpha.0.73 | 0 | 8/6/2026 |
| 0.19.1-alpha.0.69 | 18 | 8/6/2026 |
| 0.19.1-alpha.0.68 | 21 | 8/6/2026 |
| 0.19.1-alpha.0.67 | 24 | 8/6/2026 |
| 0.19.1-alpha.0.66 | 26 | 8/6/2026 |
| 0.19.1-alpha.0.64 | 30 | 8/6/2026 |
| 0.19.1-alpha.0.62 | 32 | 8/5/2026 |
| 0.19.1-alpha.0.57 | 34 | 8/5/2026 |
| 0.19.1-alpha.0.51 | 37 | 8/5/2026 |
| 0.19.1-alpha.0.43 | 27 | 8/5/2026 |
| 0.19.1-alpha.0.42 | 34 | 8/5/2026 |
| 0.19.1-alpha.0.40 | 29 | 8/5/2026 |
| 0.19.1-alpha.0.38 | 33 | 8/5/2026 |