title: How to load a DLL file from a specific URL in Asp.Net Core
body: <p>I would like to download a DLL file from <a href="http://localhost:8080/bin/" rel="nofollow noreferrer">http://localhost:8080/bin/</a> and instantiate classes and functions in my Asp.Net Core application.</p>
  
  <p>I've made a little console application (in .NET Framwork) doing this. Here the code  :</p>
  
  <pre><code>namespace ConsoleApplication2
  {
      class Program
      {
          static void Main(string[] args)
          {
              using (var wc = new WebClient())
              {
                  var myDll = Assembly.Load(wc.DownloadData("http://localhost:8080/test-dll/bin/myDll.dll"));
  
                  Type t = myDll .GetType("ConsoleApplication1.Test");
  
  
                  // Instantiate my class
  
                  object myObject = new object();
                  myObject = Activator.CreateInstance(t);
              }
          }
      }
  }
  </code></pre>
  
  <p>Unfortunately, WebClient is not supported in .Net Core. </p>
  
  <p>So, how can I load a dll file located in a specific URL and instantiate it ? (in .Net Core)</p>
  
  <p>Thanks in advance for your answers ! </p>