ClosedXML 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.
During my recent .NET 8 migration, I encountered a compatibility issue with the ClosedXML library due to Microsoft's removal of the System.Drawing.Common component. Fortunately, I discovered DocumentPartner.ClosedXML, a fork of the original ClosedXML project that addresses this issue.
You may have to do some small changes in you code if you already used ClosedXML library.
This fork, previously named DocumentPartner.ClosedXML, replaces the problematic dependency with the SkiaSharp library, enabling the library to function on non-Windows operating systems when used with .NET 8 and onwards.
To install ClosedXML, run the following command in the Package Manager Console
PM> Install-Package DocumentPartner.ClosedXML
SkiaSharp is a cross-platform 2D graphics system for .NET and C# powered by the open-source Skia graphics engine. It is available for use in .NET 6 or later versions, providing an alternative to System.Drawing for both Windows and non-Windows operating systems.