V2-Upgrade-Notes.md
September 9, 2025 ยท View on GitHub
MiniExcel 2.0 Upgrade Notes
- Support for .NET Framework 4.5 was dropped, the minimum supported Framework version is now 4.6.2.
- The root namespace was changed from
MiniExcelLibstoMiniExcelLib. - Instead of having all methods being part of the
MiniExcelstatic class, the functionalities are now split into 3 providers:MiniExcel.Importers,MiniExcel.ExportersandMiniExcel.Templaterswill give you access to, respectively, theMiniExcelImporterProvider,MiniExcelExporterProviderandMiniExcelTemplaterProvider. - This way Excel and Csv query methods are split between the
OpenXmlImporterand theCsvImporter, accessible from theMiniExcelImporterProvider. - The same structure was adopted for export methods through
OpenXmlExporterandCsvExporter, while template methods are instead currently only found inOpenXmlTemplater. Csv methods are only available if the MiniExcel.Csv package is installed, which is pulled down automatically when the full MiniExcel package is downloaded.We're still pondering whether this is the best way to move forward with the library, currently only the full MiniExcel package is available.- If the full MiniExcel package is downloaded, the previous namespace will coexist along the new one, containing the original static methods' signatures, which have become a facade for the aferomentioned providers.
IConfigurationis nowIMiniExcelConfiguration, but most methods now require the proper implementation (OpenXmlConfigurationorCsvConfiguration) to be provided rather than the interface- MiniExcel now fully supports asynchronous streaming the queries,
so the return type for
OpenXmlImporter.QueryAsyncisIAsyncEnumerable<T>instead ofTask<IEnumerable<T>>