title: Directory.GetCurrentDirectory() doesn't return the correct directory
body: <p>In my ASP.NET Core 2.2 MVC server, I want to add a folder to store static files. I found the following code to perform that:</p>
  
  <pre><code>app.UseStaticFiles(new StaticFileOptions {
      FileProvider = new PhysicalFileProvider(
          Path.Combine(Directory.GetCurrentDirectory(), "StaticFiles")),
      RequestPath = "/StaticFiles"
  });
  </code></pre>
  
  <p>In my computer, the project is located in <code>"C:\Users\MyUsername\source\repos\WebApplication1\WebApplication1"</code>, in the same directory there is a folder called "StaticFiles" and a <code>Startup.cs</code> file where the code above is written.</p>
  
  <p>But when I execute the code I got the following error:</p>
  
  <pre><code>'System.IO.DirectoryNotFoundException' in Microsoft.Extensions.FileProviders.Physical.dll C:\Program Files\IIS Express\StaticFiles\
  </code></pre>
  
  <p>The <code>Directory.GetCurrentDirectory()</code> is returning <code>"C:\\Program Files\\IIS Express"</code> instead of <code>"C:\Users\MyUsername\source\repos\WebApplication1\WebApplication1"</code>. <strong>How can I get the correct direction?</strong></p>