title: Why does publish fail to publish System.Net.Http.dll?
body: <p>I have a WPF application written in C# that is failing to publish the System.Net.Http.dll and System.Net.Http.WebRequest.dll.</p>
  
  <p>When the user launches the application they receive the error:</p>
  
  <blockquote>
    <p>Could not load file or assembly 'System.Net.Http, Version=2.0.0.0,
    Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
    dependencies. The system cannot find the file specified.</p>
  </blockquote>
  
  <p>To replicate this issue:</p>
  
  <ol>
  <li>Open VS2012</li>
  <li>File -> New -> Project -> Visual C# -> WPF Application</li>
  <li>Right-click references -> Manage NuGet Packages...</li>
  <li>Add the <em>Microsoft ASP.NET Web API Client Libraries</em> by searching for <strong>Microsoft.AspNet.WebApi.Client</strong></li>
  <li>Right-click the project -> Properties</li>
  <li>Click Publish tab</li>
  <li>Uncheck <em>Automatically increment revision with each publish</em></li>
  <li>Click <strong>Publish Now</strong> button</li>
  <li>Note that in the <code>publish\Application Files\WpfApplication1_1_0_0_0</code> folder you will see <em>System.Net.Http.Formatting.dll.deploy</em> but you won't see the other two files, <em>System.Net.Http.dll.deploy</em> or <em>System.Net.Http.WebRequest.dll.deploy</em>.</li>
  </ol>