CsExcel 1.0.3

dotnet add package CsExcel --version 1.0.3
                    
NuGet\Install-Package CsExcel -Version 1.0.3
                    
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="CsExcel" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CsExcel" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="CsExcel" />
                    
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 CsExcel --version 1.0.3
                    
#r "nuget: CsExcel, 1.0.3"
                    
#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 CsExcel@1.0.3
                    
#: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=CsExcel&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=CsExcel&version=1.0.3
                    
Install as a Cake Tool

CsExcel

CsExcel brings a declarative, functional way to generate Excel workbooks to C#: you build a workbook as an immutable sequence of instructions — not an object you mutate cell by cell — then hand that sequence to a renderer. It's a C# wrapper around FsExcel — an F# library by misterspeedy that pioneered this declarative model on top of ClosedXML, which itself exposes a traditional, mutable cell-by-cell object model underneath.

All credit for the underlying design and implementation belongs to FsExcel. CsExcel doesn't reimplement any of that — it's a thin C#-facing layer over the real library, so that C# developers who aren't writing F# can still use it directly, with two calling styles to choose from. FsExcel's own README is the authoritative reference for the library's design, and is worth reading directly for anything not covered here — new features, edge cases, and the reasoning behind how the API is shaped will show up there first.

Documentation

  • Docs/Vanilla.md — static factory methods and collection literals (Cell([String("x"), FontEmphasis(Bold)])), the closest match to FsExcel's own shape.
  • Docs/Fluent.md — a chainable builder (Cell().String("x").Bold()), closer to a typical C# builder API.

Both styles produce identical output and can be mixed freely in the same project. Each doc walks through the same set of features FsExcel's own tutorial covers, translated into C#, with runnable tests behind every example (see UnitTests/).

Example project

Examples/CsExcel.Examples is a small runnable console project showing both calling styles side by side, plus building a table straight from a C# record via reflection. Clone the repo and run it directly:

git clone https://github.com/Kookerella-Ltd/CsExcel.git
cd CsExcel/Examples/CsExcel.Examples
dotnet run

It writes three .xlsx files to its output folder and prints their paths.

Attribution

If something here seems to behave unexpectedly, check FsExcel's own documentation and issue tracker first — most of CsExcel's behavior is simply FsExcel's behavior, passed through.

License

CsExcel's own code (this wrapper) is licensed under the PolyForm Noncommercial License 1.0.0 — free to use, modify, and distribute for noncommercial purposes; commercial use requires a separate arrangement with the licensor, Kookerella Ltd.

This applies only to CsExcel's own code. FsExcel and ClosedXML, the libraries CsExcel depends on, are each licensed separately under the MIT License by their own authors — CsExcel's license doesn't change or restrict the terms those libraries are already available under as NuGet dependencies.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.3 1 8/17/2026
1.0.2 47 8/16/2026
1.0.1 39 8/16/2026
1.0.0 48 8/16/2026