ExcelLibrary.Core 1.0.1

dotnet add package ExcelLibrary.Core --version 1.0.1                
NuGet\Install-Package ExcelLibrary.Core -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="ExcelLibrary.Core" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ExcelLibrary.Core --version 1.0.1                
#r "nuget: ExcelLibrary.Core, 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.
// Install ExcelLibrary.Core as a Cake Addin
#addin nuget:?package=ExcelLibrary.Core&version=1.0.1

// Install ExcelLibrary.Core as a Cake Tool
#tool nuget:?package=ExcelLibrary.Core&version=1.0.1                

ExcelLibrary

This is a small C# library made to simplify reading from and writing to Excel workbooks in the Open XML file format (.xlsx). NOTE: This is a .NET 6 port of the .NET Framework 4.5 library 'ExcelLibrary' created by Gustaf Liljegren (gustafl) on GitHub (https://github.com/gustafl/ExcelLibrary).

Here's an example to get you started:

Workbook workbook = new Workbook();
workbook.Open("Book1.xlsx");
Sheet sheet = workbook.Sheet("Sheet1");
Row row = sheet.Row(2);
Cell cell = row.Cell(3);
string text = cell.Value;

See the wiki for more examples.

Features

  • No dependencies except .NET 6. Easy to include in other solutions.
  • Built and extendable with LINQ. Most collections in the library (e.g. Workbook.Sheets or Row.Cells) is of type IEnumerable<T>, which allows you to use LINQ queries to find exactly what you need.
  • Respects the visibility of sheets, rows and columns. Set the IncludeHidden option to trueto return hidden objects.
  • Well-tested. The library is being developed using principles of Test-Driven Development (TDD). A large set of unit tests verifies that new bugs are not introduced on code changes.
  • Well-documented. A software library is only as useful as its documentation.

Limitations

The following things have been considered outside the scope of the project:

  • All file formats except .xslx.
  • Formulas
  • Formatting properties

The following things are planned but not yet implemented features:

  • All write functionality (writing to cells, adding new sheets, adding and deleting rows and columns and so on).

Also, the library will not create new workbooks per se, but the same can be achieved by including a template workbook in your project and copy it whenever you need to create a workbook.

For more on project status, see the Current status page in the wiki.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.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
1.0.1 5,144 3/16/2023
1.0.0 225 3/16/2023