Is OpenXML SDK required to be installed in every c

2019-05-20 05:10发布

问题:

Is there a way to deploy my application (which uses ClosedXML) and not be required to install OpenXMLSDKv2.msi on each computer?

If I uninstall the sdk I get this error at runtime:

I already referenced DocumentFormat.OpenXml (copy local = true) and WindowsBase (also copy local true, despite being not necessary.

DocumentFormat.OpenXml.dll and ClosedXML.dll are both on the bin folder.

回答1:

DocumentFormat.OpenXml.dll and ClosedXML.dll are both on the bin folder.

This should be enough, no installation required.

See this question for other takes on this error (for all dlls, not just ClosedXML / OpenXml).