title: ASP.NET Core appsettings.json not loading the correct settings
body: <p>In my Azure I have <code>ENVIRONMENT = Development</code>, but my settings don't load.</p>
  
  <pre><code>public static IConfiguration Configuration { get; } = new ConfigurationBuilder()
         .SetBasePath(Directory.GetCurrentDirectory())
         .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) // reloadOnChange Whether the configuration should be reloaded if the file changes.
         .AddJsonFile($"appsettings.{Environment.GetEnvironmentVariable("ENVIRONMENT")}.json", optional: true, reloadOnChange: true)
         .AddEnvironmentVariables() // Environment Variables override all other, ** THIS SHOULD ALWAYS BE LAST
         .Build();
  </code></pre>
  
  <p>But it always uses the default settings.</p>