Aid.Xlsx 1.0.1

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

Aid.Xlsx

Aid.Xlsx icon

.NET 10 GitHub release v1.0.1 NuGet version 1.0.1 NuGet downloads CI status MIT license

Aid.Xlsx is a .NET library for reading, creating and editing .xlsx and .xlsm workbooks. It targets net10.0 and uses its own OPC/XML layer. The Open XML SDK is used by the tests for schema validation.

The 1.x release line targets .NET 10. Aid.Xlsx 2.0.0 targets .NET 11.

Documentation

Create your first workbook with the getting started guide. Find recipes for cells, formatting, formulas, tables, streams, and .xls conversion in the documentation index.

Goals

  • read, create and edit .xlsx/.xlsm: cells, values, formulas, cached values, styles, number formats, shared strings and rich text, tables, conditional formatting, data validation, comments, hyperlinks, images, page setup and protection;
  • a public API organized by domain, with Xlsx* and IXlsx* type names;
  • no DocumentFormat.OpenXml dependency at runtime: workbooks are read and written by a custom OPC/XML layer (Aid.Xlsx.Opc);
  • preservation of unknown parts on round-trip, including .xlsm VBA projects;
  • NativeAOT and trimming as supported scenarios, with reflection-free code on the common paths;
  • a formula engine ported without semantic changes.

Target framework and NativeAOT

The runtime library, tests and samples target net10.0. The build-time source generator targets netstandard2.0 so that it can run in the compiler host.

The runtime libraries enable trim, AOT and single-file analyzers. The smoke application creates, saves and reloads a workbook after a fully trimmed or NativeAOT publish.

[XlsxTable] generates a mapper for public instance fields and readable properties. Use InsertMappedTable or InsertMappedData to insert those rows without reflection. The NuGet package includes the generator.

using Aid.Xlsx.DataImport.Attributes;
using Aid.Xlsx.DataImport.Mapping;
using Aid.Xlsx.Model.Workbooks;

using var workbook = new XlsxWorkbook();
var sheet = workbook.Worksheets.Add("Sales");
sheet.Cell("A1").InsertMappedTable(new[] { new Sale("Pears", 22m) });
workbook.SaveAs("sales.xlsx");

[XlsxTable("SalesData")]
internal record Sale(string Item, [property: XlsxColumn(Format = "0.00")] decimal Amount);

Convert an Excel 97–2003 workbook

using Aid.Xlsx.Conversion;

XlsConverter.Convert("legacy.xls"); // Writes legacy.xlsx next to legacy.xls.

The converter reads BIFF8 directly. You can also specify a destination path or pass streams. It carries over worksheet values, cell formatting, row and column dimensions, visibility, and merged cells. It preserves formulas that use supported operators, references within the workbook, and common worksheet functions, along with their cached results. Other formulas become static values. See the compatibility guide for conversion limits.

Repository layout

Project Responsibility
Aid.Xlsx Workbook model, SpreadsheetML codecs, calculation, and BIFF8 conversion
Aid.Xlsx.Opc Package storage, part relationships, and XML traversal
Aid.Xlsx.Formula Formula and reference parsing
Aid.Xlsx.Generators Compiler-host generators for table mapping and workbook metadata
Aid.Xlsx.CodeGen Command-line generation of SpreadsheetML readers from the pinned XSD

tests/ contains the unit suite, compatibility checks, NativeAOT smoke test, fuzz targets, and standalone benchmarks. Repository validation lives under eng/.

Performance

Load and save timings, allocations, and commands to reproduce the measurements are in the workbook I/O benchmarks.

Building

Use the .NET SDK pinned in global.json (10.0.403) from the repository root.

dotnet build Aid.Xlsx.slnx -c Release

The first restore needs network access. See the migration guide, compatibility notes, and NativeAOT guide.

For 1.0.1, run the GitHub release workflow on release/1.x with version set to 1.0.1. This dry run uploads the NuGet and symbol packages, a CycloneDX dependency SBOM, and SHA-256 checksums. After it passes, publication is triggered by the owner pushing v1.0.1 on the verified commit. The publish job uses the nuget-production environment.

License

Aid.Xlsx is an independent MIT-licensed project derived from ClosedXML. See LICENSE and NOTICE for license and attribution details.

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

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
2.0.1 78 11/23/2026
2.0.0 84 11/23/2026
1.0.1 77 11/23/2026
1.0.0 84 11/23/2026