onizet / html2openxml

Html2OpenXml is a small .Net library that convert simple or advanced HTML to plain OpenXml components. This program has started in 2009, initially to convert user's comments from SharePoint to Word.
MIT License
306 stars 107 forks source link

Not working with the latest version of OpenXML #68

Closed Christian1980 closed 4 years ago

Christian1980 commented 4 years ago

Hi,

I have a project using your dll (via nuget packages). All is fine but when I try to update to the latest version of DocumentFormat (2.10.1) it complains about the DocumentFormat has not the right definition in the manifest assembly. So I need to downgrade DocumentFormat back to 2.7.2

'Unable to load file or assembly 'DocumentFormat.OpenXml, Version=2.7.2.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17' or one of its dependencies. Definition found in the assembly manifest does not match the assembly reference. (Exception de HRESULT : 0x80131040)'

The only solution would be to rebuild your dll myself from the source code with the latest version of DocumentFormat. Is it not possible to use DocumentFormat without being stuck to a particular version ?

twsouthwick commented 4 years ago

What framework are you running on? This sounds like a binding redirection issue. Happy to help if you describe how you're running this.