title: FileNotFoundException: Could not load file or assembly 'System.Net.Http.WebRequest'
body: <p>I've downloaded the latest .NET Framework and I'm working on .NET Core 2.0 Application on VS 2017 15.8.7.
  Here are the packages I've installed.</p>
  
  <p><a href="https://i.stack.imgur.com/HiBb8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HiBb8.png" alt="enter image description here"></a></p>
  
  <pre><code>using (var client = new PowerBIClient(new Uri(ApiUrl), tokenCredentials))
        {
  
        }
  </code></pre>
  
  <p>I'm getting an error at this line, saying:</p>
  
  <pre><code>FileNotFoundException: Could not load file or assembly 'System.Net.Http.WebRequest, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
  </code></pre>
  
  <p>Here is my .csproj </p>
  
  <pre><code> &lt;PackageReference Include="Microsoft.AspNetCore.App" /&gt;
   &lt;PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.1.2" PrivateAssets="All" /&gt;
   &lt;PackageReference Include="Microsoft.PowerBI.Api" Version="2.0.14" /&gt;
   &lt;PackageReference Include="Microsoft.PowerBI.Core" Version="1.1.11" /&gt;
   &lt;PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.6" /&gt;
   &lt;PackageReference Include="System.Net.Http" Version="4.3.4" /&gt;
  </code></pre>
  
  <p>Why am I getting this error.  Is there a reference I can add to make it work?</p>
  
  <p><strong>[UPDATE]</strong>
  I added the following lines in my csproj and am no longer getting this error.</p>
  
  <pre><code>&lt;ItemGroup&gt;
      &lt;Reference Include="System.Net.Http"&gt;
        &lt;HintPath&gt;..\..\..\..\..\..\Windows\Microsoft.NET\Framework\v4.0.30319\System.Net.Http.dll&lt;/HintPath&gt;
      &lt;/Reference&gt;
      &lt;Reference Include="System.Net.Http.WebRequest"&gt;
        &lt;HintPath&gt;..\..\..\..\..\..\Windows\Microsoft.NET\Framework\v4.0.30319\System.Net.Http.WebRequest.dll&lt;/HintPath&gt;
      &lt;/Reference&gt;
    &lt;/ItemGroup&gt;
  </code></pre>