XlsxSharp 1.0.0
See the version list below for details.
dotnet add package XlsxSharp --version 1.0.0
NuGet\Install-Package XlsxSharp -Version 1.0.0
<PackageReference Include="XlsxSharp" Version="1.0.0" />
<PackageVersion Include="XlsxSharp" Version="1.0.0" />
<PackageReference Include="XlsxSharp" />
paket add XlsxSharp --version 1.0.0
#r "nuget: XlsxSharp, 1.0.0"
#:package XlsxSharp@1.0.0
#addin nuget:?package=XlsxSharp&version=1.0.0
#tool nuget:?package=XlsxSharp&version=1.0.0
XlsxSharp is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API.
This is a fork of ClosedXML. With the primary goal to update the library to .NET 10 and to maintain it with the latest .NET versions.
For more information see the documentation.
Install XlsxSharp via NuGet
If you want to include XlsxSharp in your project, you can install it directly from NuGet
XlsxSharp is currently published as a prerelease, so the prerelease switch is required. To install XlsxSharp, run the following command in the Package Manager Console
PM> Install-Package XlsxSharp -IncludePrerelease
What can you do with this?
XlsxSharp allows you to create Excel files without the Excel application. The typical example is creating Excel reports on a web server.
Example:
using (var workbook = new XLWorkbook())
{
var worksheet = workbook.Worksheets.Add("Sample Sheet");
worksheet.Cell("A1").Value = "Hello World!";
worksheet.Cell("A2").FormulaA1 = "=MID(A1, 7, 5)";
workbook.SaveAs("HelloWorld.xlsx");
}
Formula parser
XlsxSharp ships its own Pratt (operator-precedence) formula parser (XlsxSharp.Parser), supporting both A1 and R1C1 reference styles. It is regression-tested against real-world formula corpora, most notably the Enron and EUSES spreadsheet datasets used in academic formula-parsing research:
| Dataset | Formulas | Parsed successfully |
|---|---|---|
| Enron | 946,320 | 946,303 |
| EUSES | 89,295 | 89,294 |
These figures are asserted as a floor in XlsxSharp.Parser.Tests/PrattDataSetTests.cs (EnronDataSetCoverage, EusesDataSetCoverage), so any regression in parser coverage fails CI.
Developer guidelines
The OpenXML specification is a large and complicated beast. In order for XlsxSharp, the wrapper around OpenXML, to support all the features, we rely on community contributions. Before opening an issue to request a new feature, we'd like to urge you to try to implement it yourself and log a pull request.
Please read the full developer guidelines.
Credits
- Project originally created by Manuel de Leon
- Current maintainer: Stefan Nikolei
- Former maintainer: Jan Havlíček
- Former maintainer and lead developer: Francois Botha
- Master of Computing Patterns: Aleksei Pankratev
| 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
- DocumentFormat.OpenXml (>= 3.5.1 && < 4.0.0)
- ExcelNumberFormat (>= 1.1.0)
- RBush.Signed (>= 4.0.0)
- SixLabors.Fonts (>= 3.1.0)
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.1-preview.0.1 | 0 | 8/26/2026 |
| 1.0.0 | 29 | 8/25/2026 |
| 1.0.0-preview.0.2520 | 26 | 8/25/2026 |
| 1.0.0-preview.0.2519 | 28 | 8/25/2026 |
| 1.0.0-preview.0.2518 | 31 | 8/25/2026 |
| 1.0.0-preview.0.2516 | 41 | 8/23/2026 |
| 1.0.0-preview.0.2515 | 38 | 8/23/2026 |
| 1.0.0-preview.0.2514 | 39 | 8/23/2026 |
| 1.0.0-preview.0.2513 | 35 | 8/23/2026 |
| 1.0.0-preview.0.2512 | 55 | 8/23/2026 |
| 1.0.0-preview.0.2511 | 44 | 8/23/2026 |
| 1.0.0-preview.0.2510 | 46 | 8/23/2026 |
| 1.0.0-preview.0.2509 | 45 | 8/23/2026 |
| 1.0.0-preview.0.2508 | 59 | 8/22/2026 |
| 1.0.0-preview.0.2507 | 46 | 8/22/2026 |
| 1.0.0-preview.0.2506 | 47 | 8/22/2026 |