There are no plans at current for allowing multiple versions of a package to be installed into a single project at once. This would generally lead to conflicts as there would need to be 2 assemblies with the same name referenced (and in the bin folder).
The issue here is that ClosedXML has a version-specific dependency on DocumentFormat.OpenXml. You can contact the owner of ClosedXML to see if they can publish a new version that allows for different versions of DocumentFormat.OpenXml to be used.
If that isn't successful, then you can try to break yourself out of this conflict by doing the following:
- Install-Package DocumentFormat.OpenXml [to get to your starting point]
- Install-Package ClosedXML -ignoreDependencies [to install it, ignoring its dependencies]
This will result in a binding redirect getting added to your app/web.config file, like this:
<assemblyIdentity name="DocumentFormat.OpenXml" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.5.5631.0" newVersion="2.5.5631.0" />
Then you'll need to test your consumption of ClosedXML to see if the newer version of DocumentFormat.OpenXml can really be used with it. If it works, you'll certainly want to let the owners of ClosedXML know that (using the Contact Owners link on
for the package), so that they might move forward with updating the package with a new version that allows the newer DocumentFormat.OpenXml.
Hope this helps,