title: ASP.NET Core ignores ASPNET_ENV and Hosting:Environment
body: <p>No matter when or where I set either <code>ASPNET_ENV</code> or <code>Hosting:Environment</code> the startup code will always enter </p>
  
  <pre><code>//This method is invoked when ASPNET_ENV is 'Production'
  //The allowed values are Development,Staging and Production
  public void ConfigureProduction(IApplicationBuilder app, ILoggerFactory loggerFactory)
  {
     loggerFactory.AddConsole(minLevel: LogLevel.Warning);
  
     Configure(app);
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/MjXZh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MjXZh.png" alt="enter image description here"></a></p>
  
  <p>What I've tried so far</p>
  
  <ul>
  <li>Set <code>Hosting:Environment</code> to <code>Development</code> in the project properties</li>
  <li>Set <code>ASPNET_ENV</code> to <code>Development</code> in the project properties</li>
  <li>Set <code>Hosting:Environment</code> to <code>Development</code> in <code>launchSettings.json</code></li>
  <li>Set <code>ASPNET_ENV</code> to <code>Development</code> in <code>launchSettings.json</code></li>
  <li>Set <code>ASPNET_ENV</code> to <code>Development</code> in code via <code>Environment.SetEnvironmentVariable("ASPNET_ENV", "Development");</code> in the <code>Startup</code> method before the call to <code>ConfigurationBuilder.GetEnvironmentVariables()</code></li>
  </ul>
  
  <p>This is version <code>1.0.0-rc2-20143</code> by the way. Am I missing something here or is it just a bug?</p>