title: IIS not finding an external DLL
body: <p>I have a C# .NET Core WebAPI and I'm using IIS. In my code I load an external DLL at runtime, like this:</p>
  
  <pre><code>var res = new LoadMyDLL("mydll.dll");
  </code></pre>
  
  <p>I have to do it because the <code>LoadMyDLL</code> function accepts a string which is the path to the DLL itself. Ideally I'd like to have the DLL in the same folder as the main app so that's why no path is provided, just the name of the dll file.</p>
  
  <p>Now, when I run the application in console mode everything is file, the dll is in the same folder of the main .exe. When I run the application as a class library in IIS it doesn't find the dll anymore. What's the working dir when running under IIS? What could be a post build step in VS2015 to copy the dll into the correct IIS folder?</p>