title: Why does app with embedded Adobe Reader Control work when published from VS 2013 but not VS 2017?
body: <p>My application uses the "Adobe PDF Reader" control to view PDF documents on a Windows Form. It is published as a ClickOnce app. If I publish it using Visual Studio 2013 it installs and runs fine. But if I publish it using Visual Studio 2017 (without making any changes to the solution), it will install but not run. It throws this error:
  System.IO.FileNotFoundException: Could not load file or assembly 'AxInterop.AcroPDFLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=963d585c671a3ae6' or one of its dependencies. The system cannot find the file specified.</p>
  
  <p>So I went to "Publish/Application Files..." in Visual Studio to include the missing dll, only to find out I couldn't include it because it was not listed.</p>
  
  <p>In VS 2017 the "Application Files" window looks like this:
  <a href="https://i.stack.imgur.com/Ou6f4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ou6f4.png" alt="enter image description here"></a></p>
  
  <p>But in VS 2013 the "Application Files" window looks like this:
  <a href="https://i.stack.imgur.com/0rPWK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0rPWK.png" alt="enter image description here"></a></p>
  
  <p>Now in VS 2013 the MANIFEST file published in the ClickOnce folder contains this XML:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="AxInterop.AcroPDFLib.dll" size="9216"&gt;
        &lt;assemblyIdentity name="AxInterop.AcroPDFLib" version="1.0.0.0" language="neutral" processorArchitecture="msil" /&gt;
        &lt;hash&gt;
          &lt;dsig:Transforms&gt;
            &lt;dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /&gt;
          &lt;/dsig:Transforms&gt;
          &lt;dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /&gt;
          &lt;dsig:DigestValue&gt;Nyyy1D0D9ublZaujf9VDo73k2Ic=&lt;/dsig:DigestValue&gt;
        &lt;/hash&gt;
      &lt;/dependentAssembly&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Interop.AcroPDFLib.dll" size="12800"&gt;
        &lt;assemblyIdentity name="Interop.AcroPDFLib" version="1.0.0.0" language="neutral" processorArchitecture="x86" /&gt;
        &lt;hash&gt;
          &lt;dsig:Transforms&gt;
            &lt;dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /&gt;
          &lt;/dsig:Transforms&gt;
          &lt;dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /&gt;
          &lt;dsig:DigestValue&gt;ECgRqgvCeIc6FfkrboUllt0qScw=&lt;/dsig:DigestValue&gt;
        &lt;/hash&gt;
      &lt;/dependentAssembly&gt;
    &lt;/dependency&gt;
  </code></pre>
  
  <p>But the above XML is missing from the MANIFEST file when published with VS 2017.</p>
  
  <p>Again, keep in mind this is exactly the same project and solution. I have changed nothing.</p>
  
  <p>What do I need to do to get the VS 2017 published version to include the required dependency information? Is this a bug, or am I missing something?</p>
  
  <p>Thanks!</p>