I have three dlls:
DocumentFormat.OpenXml.dll
- This is a Microsoft dll for interacting with their XML Office documents (i.e..xlsx
,.docx
, etc). It is not very easy to use, which is why I'm using...ClosedXML.dll
- This is a wrapper around DocumentFormat.MyHelper.dll
- This is my assembly I've created that directly references ClosedXML, but not DocumentFormat.
I am using MyHelper in multiple applications that I'm publishing with ClickOnce. By default, the ClickOnce application does copy MyHelper and ClosedXML to the ClickOnce deployment folder, but does not copy DocumentFormat. Looking at the ClickOnce Project's 'Properties' -> 'Publish' -> 'Application Files...', it shows that DocumentFormat has been set to 'Prerequisite (Auto)' where as ClosedXML and MyHelper are set to 'Include (Auto)'. I would like to configure MyHelper/DocumentFormat so that DocumentFormat gets set to 'Include (Auto)' as well.
- I've tried setting "Copy Local" to True in MyHelper (including toggling it)
- I've tried referencing DocumentFormat from MyHelper.
- I tried adding it as a Resource in MyHelper, but that was messy (and I don't think it worked)
- I tried adding a network folder path to MyHelper's
Reference Paths
that contains a copy of the DocumentFormat dll