Fuaran.UI.CSharp
0.31.0
Prefix Reserved
See the version list below for details.
dotnet add package Fuaran.UI.CSharp --version 0.31.0
NuGet\Install-Package Fuaran.UI.CSharp -Version 0.31.0
<PackageReference Include="Fuaran.UI.CSharp" Version="0.31.0" />
<PackageVersion Include="Fuaran.UI.CSharp" Version="0.31.0" />
<PackageReference Include="Fuaran.UI.CSharp" />
paket add Fuaran.UI.CSharp --version 0.31.0
#r "nuget: Fuaran.UI.CSharp, 0.31.0"
#:package Fuaran.UI.CSharp@0.31.0
#addin nuget:?package=Fuaran.UI.CSharp&version=0.31.0
#tool nuget:?package=Fuaran.UI.CSharp&version=0.31.0
Fuaran.UI.CSharp
An idiomatic C# authoring veneer over the Fuaran UI language. Author Fuaran UI
trees in modern C# — static factory + options records, required members that make
a missing field a compile error, C# 12 collection expressions for children, and
implicit conversions so Label = "Revenue" and Value = 1234.5 bind with no helper
call. No FSharp.Core type appears on any public signature.
using Fuaran.UI.CSharp;
using static Fuaran.UI.CSharp.Fuaran; // the factory entry points as Dashboard(...), Heading(...), …
var tree = Dashboard(new()
{
Id = "root",
Children =
[
Heading(new() { Id = "title", Text = "Channel performance" }),
Markdown(new() { Id = "note", Text = "**Hello** from a Fuaran tree." }),
],
});
string wireJson = tree.Encode();
This is the first tree of the C# get-started track — the same example, rendered live from its canonical wire JSON on the site.
Reaching the factories. The factory class is
Fuaran.UI.CSharp.Fuaran. Because the runtime also ships aFuarannamespace (the F# tier), a bareFuaran.Metric(…)underusing Fuaran.UI.CSharp;binds the namespace, not the type. Useusing static Fuaran.UI.CSharp.Fuaran;(recommended — you writeMetric(new() { … })) or the fully-qualifiedFuaran.UI.CSharp.Fuaran.Metric(…). The facade types (Binding,CellFormat,Tone, …) have no such clash — plainusing Fuaran.UI.CSharp;reaches them.
The veneer is wire-faithful by construction: Encode calls the same canonical
F# encoder the F# host uses, so a C#-authored tree produces the same bytes as its
F# equivalent — there is no parallel C# codec. Decoding is covered by the C#-native
Decode surface.
See docs/csharp-authoring.md for the full authoring guide.
| 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. |
-
net10.0
- Fable.Core (>= 5.0.0)
- FSharp.Core (>= 10.1.300)
- Fuaran.Core.Column (>= 0.11.0)
- Fuaran.Core.DataFrame (>= 0.11.0)
- Fuaran.Core.Function (>= 0.11.0)
- Fuaran.Core.Ops (>= 0.11.0)
- Fuaran.Core.OpStream (>= 0.11.0)
- Fuaran.Core.Tree (>= 0.11.0)
- Fuaran.Core.Validator (>= 0.11.0)
- Fuaran.Core.Wire (>= 0.11.0)
- Fuaran.UI (>= 0.31.0)
- Fuaran.UI.Ops (>= 0.31.0)
- Fuaran.UI.OpStream.Abstractions (>= 0.31.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Fuaran.UI.CSharp:
| Package | Downloads |
|---|---|
|
Fuaran.UI.VisualBasic
Fuaran.UI.VisualBasic — author Fuaran UI trees in VB via first-class XML literals. A runtime XElement → Node<obj> translator over the shared F# encoder; no FSharp.Core types on the boundary. Apache-2.0 licensed. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.46.0 | 30 | 8/28/2026 |
| 0.39.0 | 38 | 8/27/2026 |
| 0.35.0 | 90 | 8/24/2026 |
| 0.32.0 | 88 | 8/23/2026 |
| 0.31.0 | 95 | 8/21/2026 |
| 0.30.0 | 96 | 8/21/2026 |
| 0.29.0 | 95 | 8/19/2026 |
| 0.28.0 | 101 | 8/18/2026 |
| 0.27.0 | 97 | 8/18/2026 |
| 0.26.0 | 99 | 8/18/2026 |
| 0.18.0 | 102 | 8/10/2026 |
| 0.15.0 | 97 | 8/9/2026 |
| 0.12.0 | 115 | 7/31/2026 |
| 0.11.0 | 107 | 7/30/2026 |
| 0.10.0 | 113 | 7/29/2026 |
| 0.6.0 | 104 | 7/27/2026 |
| 0.4.0 | 110 | 7/26/2026 |
| 0.3.0 | 117 | 7/24/2026 |