title: Secondary dll gets marked as 'Prerequisite (Auto)'
body: <p>I have three dlls:</p>
  
  <ul>
  <li><a href="https://www.microsoft.com/en-us/download/details.aspx?id=5124" rel="nofollow noreferrer"><code>DocumentFormat.OpenXml.dll</code></a> - This is a Microsoft dll for interacting with their XML Office documents (i.e. <code>.xlsx</code>, <code>.docx</code>, etc). It is not very easy to use, which is why I'm using...</li>
  <li><a href="http://closedxml.codeplex.com" rel="nofollow noreferrer"><code>ClosedXML.dll</code></a> - This is a wrapper around DocumentFormat.</li>
  <li><code>MyHelper.dll</code> - This is my assembly I've created that directly references ClosedXML, but not DocumentFormat.</li>
  </ul>
  
  <p>I am using MyHelper in multiple applications that I'm publishing with ClickOnce. By default, the ClickOnce application <strong>does copy</strong> MyHelper and ClosedXML to the ClickOnce deployment folder, but <strong>does not copy</strong> 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.</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/a/7856474/892536">I've tried setting "Copy Local" to True in MyHelper (including toggling it)</a></li>
  <li><a href="https://stackoverflow.com/a/21055664/892536">I've tried referencing DocumentFormat from MyHelper.</a></li>
  <li>I tried adding it as a Resource in MyHelper, but that was messy (and I don't think it worked)</li>
  <li>I tried adding a network folder path to MyHelper's <code>Reference Paths</code> that contains a copy of the DocumentFormat dll</li>
  </ul>