title: appsettings.json not found when running with `dotnet run --project`
body: <p>I have a simple console app that loads <code>appsettings.json</code>:</p>
  <pre class="lang-cs prettyprint-override"><code>var config = new ConfigurationBuilder()
      .SetBasePath(Directory.GetCurrentDirectory())
      .AddJsonFile(&quot;appsettings.json&quot;)
      .Build();
  </code></pre>
  <p>My <code>appsettings.json</code> file is being copied to the output on build according to setup in my csproj:</p>
  <pre class="lang-xml prettyprint-override"><code>  &lt;ItemGroup&gt;
      &lt;None Update=&quot;appsettings.json&quot;&gt;
        &lt;CopyToOutputDirectory&gt;Always&lt;/CopyToOutputDirectory&gt;
      &lt;/None&gt;
    &lt;/ItemGroup&gt;
  </code></pre>
  <p>I noticed that the app works perfectly well when I run it with <code>dotnet run</code> from the app's directory (where the csproj is).
  However, when I run it from the <code>.sln</code> file directory with <code>dotnet run --project ./source/MyProj/MyProj.csproj</code>, it throws:</p>
  <pre><code>Unhandled exception. System.IO.FileNotFoundException: The configuration file 'appsettings.json' was not found and is not optional. The physical path is '/home/mnj/code/myapp/appsettings.json'.
     at Microsoft.Extensions.Configuration.FileConfigurationProvider.HandleException(ExceptionDispatchInfo info)
     at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)
     at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load()
     at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
     at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
     at MyProj.Program.BuildServiceProvider() in /home/mnj/code/myapp/source/MyProj/Program.cs:line 24
     at MyProj.Program.Main(String[] args) in /home/marcin/code/myapp/source/MyProj/Program.cs:line 15
     at MyProj.Program.&lt;Main&gt;(String[] args)
  </code></pre>
  <p>Why dotnet properly loads <code>appsettings.json</code> from <code>source/MyProj/bin/Debug/netcoreapp3.1/appsettings.json</code> when I invoke <code>dotnet run</code> from within project's directory, and it does not do it when I run it with <code>dotnet run --project ...</code>?</p>