title: Dotnet in Fedora 25: WebClient does not exist in System.Net
body: <p>I am using Dotnet on Fedora 25. I used <a href="https://copr.fedorainfracloud.org/coprs/nmilosev/dotnet-sig/" rel="nofollow noreferrer">these instructions</a> to install Dotnet with RPMs for my distribution, as there are no official packages for Fedora 25:</p>
  
  <p>Things look fine:</p>
  
  <pre><code>$ dotnet --version
  1.0.0-preview2-1-003175
  </code></pre>
  
  <p>I am trying to run a simple WebClient example, created with Visual Code:</p>
  
  <pre><code>using System;
  using System.Net;
  using System.Net.Http;
  using System.Net.WebClient;
  
  namespace ConsoleApplication
  {
      public class Program
      {
          public static void Main(string[] args)
          {
              using (var webClient = new WebClient()) 
              {
                  var url = [someurl];
                  var htmlCode = webClient.DownloadData(url);
                  var base64 = Convert.ToBase64String(htmlCode);
              }
          }
      }
  }
  </code></pre>
  
  <p>Note that I added the <code>using</code> statements one-by-one, running into this issue:</p>
  
  <pre><code>$ dotnet build
  Project cbsearchui_test (.NETCoreApp,Version=v1.1) will be compiled because expected outputs are missing
  Compiling test_project for .NETCoreApp,Version=v1.1
  /usr/lib64/dotnetcore/dotnet compile-csc 
  @test_project/obj/Debug/netcoreapp1.1/dotnet-
  compile.rsp returned Exit Code 1
  test_project/Program.cs(4,18): error CS0234: 
  The type or namespace name 'WebClient' does not exist in the namespace 
  'System.Net' (are you missing an assembly reference?)
  
  Compilation failed.
      0 Warning(s)
      1 Error(s)
  
  Time elapsed 00:00:00.6661503
  </code></pre>
  
  <p>This is my <code>project.json</code>, automatically generated by VS Code:</p>
  
  <pre><code>{
    "version": "1.0.0-*",
    "buildOptions": {
      "debugType": "portable",
      "emitEntryPoint": true
    },
    "dependencies": {},
    "frameworks": {
      "netcoreapp1.1": {
        "dependencies": {
          "Microsoft.NETCore.App": {
            "type": "platform",
            "version": "1.1.0"
          }
        },
        "imports": "dnxcore50"
      }
    }
  }
  </code></pre>
  
  <p>I am struggling to understand if this is related to my specific Dotnet installation and/or to Fedora 25. Similar questions seem to refer to <a href="https://stackoverflow.com/questions/3304741/getting-type-or-namespace-name-could-not-be-found-but-everything-seems-ok?noredirect=1&amp;lq=1">compatibility issues</a>, <a href="https://stackoverflow.com/questions/4764978/the-type-or-namespace-name-could-not-be-found?rq=1">profiling</a>, <a href="https://stackoverflow.com/questions/19164900/system-net-webclient-not-working-webclient-could-not-be-found">bad usage statement</a> etc. But none of them seem applicable to this issue.</p>
  
  <p>I also tried changing the dependency to <code>netcoreapp</code> to version 1.0.0 instead of 1.1.0, but the same error persists.</p>