LiteExcel 2.2.2
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package LiteExcel --version 2.2.2
NuGet\Install-Package LiteExcel -Version 2.2.2
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="LiteExcel" Version="2.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LiteExcel" Version="2.2.2" />
<PackageReference Include="LiteExcel" />
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 LiteExcel --version 2.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LiteExcel, 2.2.2"
#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 LiteExcel@2.2.2
#: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=LiteExcel&version=2.2.2
#tool nuget:?package=LiteExcel&version=2.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
LiteExcel
A lightweight, zero-dependency .NET library for reading and writing Excel xlsx/xlsm/csv files. 轻量级 xlsx/xlsm/csv 读写库,零第三方依赖,AOT 友好。
Version / 版本: 2.2.2
Language / 语言
Install / 安装
dotnet add package LiteExcel
Quick Start / 快速上手
using LiteExcel;
// Object-model API / 对象模型 API
var wb = Excel.Create();
wb.Worksheets["Sheet1"].SetValue("A1", "Name");
wb.Worksheets["Sheet1"].SetValue("A2", "Zhang San");
wb.SaveAs("output.xlsx");
var opened = Excel.Open("output.xlsx");
var name = opened.Worksheets[0].Cell("A2").GetString();
// Classic API / 经典 API(XlsxWriter / XlsxReader)
var sheet = new SheetData
{
SheetName = "Sheet1",
Headers = new() { "Name", "Age" },
Rows = new()
{
new Cell[] { Cell.FromText("Zhang San"), Cell.FromNumber(25) },
},
};
XlsxWriter.Write("output2.xlsx", sheet);
var read = XlsxReader.Read("output2.xlsx", 0);
Features / 特性
- Zero dependencies / 零依赖
- AOT friendly / AOT 友好
- net48 + net8.0
- Object-model API
Excel -> Workbook -> Worksheet -> Cell/Range/Cells/ 直觉化对象模型 API - xlsx / xlsm / csv formats / 多格式支持
- Streaming read/write for large files / 大文件流式读写
- Read/Write, styles, merged cells, auto filter, row height, comments, data validation, append, Stream, List<T>/DataTable
- 读/写、样式、合并、自动筛选、行高、批注、数据验证、追加、Stream、List<T>/DataTable
Docs / 文档
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- No dependencies.
-
net8.0
- No dependencies.
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.4.78 | 0 | 9/26/2026 |
| 2.4.77 | 88 | 9/18/2026 |
| 2.4.76 | 89 | 9/15/2026 |
| 2.4.75 | 104 | 9/10/2026 |
| 2.4.74 | 100 | 9/9/2026 |
| 2.4.71 | 108 | 9/3/2026 |
| 2.4.7 | 110 | 8/27/2026 |
| 2.4.6 | 99 | 8/25/2026 |
| 2.4.5 | 105 | 8/24/2026 |
| 2.4.4 | 114 | 8/22/2026 |
| 2.4.3 | 93 | 8/22/2026 |
| 2.4.2 | 112 | 8/21/2026 |
| 2.4.1 | 108 | 8/19/2026 |
| 2.4.0 | 104 | 8/19/2026 |
| 2.3.0 | 123 | 8/18/2026 |
| 2.2.6 | 123 | 8/17/2026 |
| 2.2.5 | 114 | 8/15/2026 |
| 2.2.4 | 104 | 8/15/2026 |
| 2.2.3 | 109 | 8/15/2026 |
| 2.2.2 | 117 | 8/15/2026 |
Loading failed