CsExcel 1.0.2
See the version list below for details.
dotnet add package CsExcel --version 1.0.2
NuGet\Install-Package CsExcel -Version 1.0.2
<PackageReference Include="CsExcel" Version="1.0.2" />
<PackageVersion Include="CsExcel" Version="1.0.2" />
<PackageReference Include="CsExcel" />
paket add CsExcel --version 1.0.2
#r "nuget: CsExcel, 1.0.2"
#:package CsExcel@1.0.2
#addin nuget:?package=CsExcel&version=1.0.2
#tool nuget:?package=CsExcel&version=1.0.2
CsExcel
CsExcel is a C# wrapper around FsExcel — an F# library by misterspeedy for writing Excel workbooks via ClosedXML, using a flat, declarative list of instructions rather than ClosedXML's cell-by-cell object model.
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
- FsExcel: https://github.com/misterspeedy/FsExcel — the library this project wraps.
- ClosedXML: https://github.com/ClosedXML/ClosedXML — the underlying Excel file library FsExcel itself builds on.
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 | Versions 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. |
-
.NETStandard 2.0
- FsExcel (>= 0.0.49)
- FSharp.Core (>= 10.1.400)
- Microsoft.NETCore.Platforms (>= 1.1.1)
- System.IO.Packaging (>= 6.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.