title: Failed to add reference to 'System.Net.Http'. Please make sure that it is in the Global Assembly Cache
body: <p>I am trying to add <code>Microsoft.AspNet.WebApi</code> Nuget Package to a C# Class Library Project. <a href="https://github.com/theShiva/ErrandBoy" rel="noreferrer">Here's the Project source code</a> in case you need it.</p>
  <p>When I execute the following command in the Nuget Package Manager Console in Visual Studio 2013 (it has latest .NET 4.5 in it)</p>
  <pre><code>PM&gt; install-package Microsoft.AspNet.WebApi ErrandBoy.Web.Common
  </code></pre>
  <p>I get the following Error.</p>
  <pre><code>PM&gt; install-package Microsoft.AspNet.WebApi ErrandBoy.Web.Common
  Attempting to resolve dependency 'Microsoft.AspNet.WebApi.WebHost (≥ 5.2.2 &amp;&amp; &lt; 5.3.0)'.
  Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Core (≥ 5.2.2 &amp;&amp; &lt; 5.3.0)'.
  Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Client (≥ 5.2.2)'.
  Attempting to resolve dependency 'Newtonsoft.Json (≥ 6.0.4)'.
  'Microsoft.AspNet.WebApi 5.2.2' already installed.
  Adding 'Newtonsoft.Json 6.0.4' to ErrandBoy.Web.Common.
  Successfully added 'Newtonsoft.Json 6.0.4' to ErrandBoy.Web.Common.
  Adding 'Microsoft.AspNet.WebApi.Client 5.2.2' to ErrandBoy.Web.Common.
  install-package : Failed to add reference to 'System.Net.Http'. Please make sure that it is in the Global Assembly Cache.
  At line:1 char:1
  + install-package Microsoft.AspNet.WebApi ErrandBoy.Web.Common
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
  </code></pre>
  <p>The specific error line is the following. It seems to be where it's trying to add reference to Adding <code>'Microsoft.AspNet.WebApi.Client 5.2.2'</code></p>
  <pre><code>Failed to add reference to 'System.Net.Http'. Please make sure that it is 
  in the Global Assembly Cache.
  </code></pre>
  <p>I've never gotten such an error before. I did see a similar error on this SO Overflow question =&gt; <a href="https://stackoverflow.com/questions/24987678/error-on-installing-asp-net-identity-2-samples">Error on installing ASP.NET Identity 2 Samples</a> but that one has no answer.</p>
  <h3>Error Screenshot:</h3>
  <p><a href="https://github.com/theShiva/ErrandBoy" rel="noreferrer">https://github.com/theShiva/ErrandBoy</a>
  <img src="https://i.stack.imgur.com/cvrkW.png" alt="failed to add reference to system.net.http nuget package web api error" /></p>