Fuaran.UI.CSharp 0.35.0

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

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 a Fuaran namespace (the F# tier), a bare Fuaran.Metric(…) under using Fuaran.UI.CSharp; binds the namespace, not the type. Use using static Fuaran.UI.CSharp.Fuaran; (recommended — you write Metric(new() { … })) or the fully-qualified Fuaran.UI.CSharp.Fuaran.Metric(…). The facade types (Binding, CellFormat, Tone, …) have no such clash — plain using 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 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. 
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 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