Note that there are some explanatory texts on larger screens.

plurals
  1. PODeploying System.Net.Http.dll with ClickOnce
    text
    copied!<p>I'm developing an application which is to be deployed with ClickOnce. After downgrading from .NET 4.5 to .NET 4.0 and replacing repairing bad references, now I have problem with deployment package. Some files, most importantly <code>System.Net.Http.dll</code> are not deployed with the application. I've done some checks but can't conclude why exactly this happens. My suspicion is that package is created with expectation that this assembly already exists on target machine. This would be reasonable if target framework was .NET 4.5, but not now that it's .NET 4. Strangely, <code>System.Net.Http.Extensions.dll</code> gets deployed correctly.</p> <p>Settings and version numbers are same for both files: <img src="https://i.stack.imgur.com/Aznpi.png" alt="enter image description here"></p> <p>References are made to same package:</p> <pre><code>&lt;Reference Include="System.Net.Http, Version=2.2.13.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"&gt; &lt;HintPath&gt;..\packages\Microsoft.Net.Http.2.2.13\lib\net40\System.Net.Http.dll&lt;/HintPath&gt; &lt;SpecificVersion&gt;False&lt;/SpecificVersion&gt; &lt;/Reference&gt; &lt;Reference Include="System.Net.Http.Extensions, Version=2.2.13.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"&gt; &lt;SpecificVersion&gt;False&lt;/SpecificVersion&gt; &lt;HintPath&gt;..\packages\Microsoft.Net.Http.2.2.13\lib\net40\System.Net.Http.Extensions.dll&lt;/HintPath&gt; &lt;/Reference&gt; </code></pre> <p>Target platform is .NET 4, and deployment prerequisite is also .NET 4 and a KB update. <img src="https://i.stack.imgur.com/IoKfJ.png" alt="enter image description here"></p> <p>File is not even displayed in Application Files dialog: <img src="https://i.stack.imgur.com/mowob.png" alt="enter image description here"></p> <p>Any ideas? I might just try and deploy the assembly as a content file if all else fails. Removing and re-adding the reference did not make a difference.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload