So the problem is that the nuget Spreadsheetlight package skips the required dependency specification in Nuspec.
Install-Package DocumentFormat.OpenXml -Version 1.0.0
DocumentFormat.OpenXml , Could not load type ‘DocumentFormat.OpenXml.Spreadsheet.SmartTags’ from assembly ‘DocumentFormat.OpenXml, Version=2.5.5631.0
UNinstall-Package DocumentFormat.OpenXml
,
<dependentAssembly>
<assemblyIdentity name="DocumentFormat.OpenXml" publicKeyToken="31bf3856ad364e35"... />
<bindingRedirect oldVersion="0.0.0.0-2.5.5631.0" newVersion="2.5.5631.0" />
</dependentAssembly>
.
:
Install-Package DocumentFormat.OpenXml -Version 1.0.0
: EricTummers.com