title: HttpClient in ASP.NET 5.0 not found?
body: <p>Using VS2015 and asp.net 5, when I try to compile my site using an instance of System.Net.HttpClient, it tells me:</p>
  
  <blockquote>
    <p>The type or namespace name 'HttpClient' could not be found (are you
    missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>Hovering over the offending code, I see:</p>
  
  <pre><code>"WebApplication1.ASP.NET 5.0 - Available"
  "WebApplication1.ASP.NET Core 5.0 - Not Available"
  </code></pre>
  
  <p>I have 2 frameworks listed in my project.json file:</p>
  
  <pre><code>"frameworks": {
      "aspnet50": { },
      "aspnetcore50": { }
  },
  </code></pre>
  
  <p>I'm assuming that one of these is responsible by not having the assembly, but I don't really know how to fix it or how this works.</p>
  
  <p>How can I get the site to run with HttpClient instead of throwing errors? The offending method posted below:</p>
  
  <pre><code>private async Task&lt;string&gt; GetStringFromUri()
  {
      using (var httpClient = new HttpClient())
      {
          result = await httpClient.GetStringAsync(
          new Uri("http://baconipsum.com/api/?type=meat-and-filler"));
  
          viewModel= result;
          return viewModel;
      }
  }
  </code></pre>