The latest ClosedXML and OpenXML packages from Nuget are still not compatible. My application threw the exception
System.TypeLoadException: Could not load type 'DocumentFormat.OpenXml.Spreadsheet.SmartTags' from assembly 'DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=
neutral, PublicKeyToken=31bf3856ad364e35'.
at ClosedXML.Excel.XLWSContentManager..ctor(Worksheet opWorksheet)
at ClosedXML.Excel.XLWorkbook.GenerateWorksheetPartContent(WorksheetPart worksheetPart, XLWorksheet xlWorksheet, SaveContext context)
at ClosedXML.Excel.XLWorkbook.CreateParts(SpreadsheetDocument document)
at ClosedXML.Excel.XLWorkbook.CreatePackage(String filePath)
at ClosedXML.Excel.XLWorkbook.Save()
when I tried to use those 2 at the same time.
System.TypeLoadException: Could not load type 'DocumentFormat.OpenXml.Spreadsheet.SmartTags' from assembly 'DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=
neutral, PublicKeyToken=31bf3856ad364e35'.
at ClosedXML.Excel.XLWSContentManager..ctor(Worksheet opWorksheet)
at ClosedXML.Excel.XLWorkbook.GenerateWorksheetPartContent(WorksheetPart worksheetPart, XLWorksheet xlWorksheet, SaveContext context)
at ClosedXML.Excel.XLWorkbook.CreateParts(SpreadsheetDocument document)
at ClosedXML.Excel.XLWorkbook.CreatePackage(String filePath)
at ClosedXML.Excel.XLWorkbook.Save()
when I tried to use those 2 at the same time.