title: Setting HostingEnvironment.EnvironmentName to Development in Rider
body: <p>My code:</p>
  
  <pre><code>    public static async Task Main(string[] args)
      {
          var host = new HostBuilder()
              .ConfigureAppConfiguration(
                  (hostContext, configApp) =&gt;
                  {
                      configApp.SetBasePath(Directory.GetCurrentDirectory());
                      configApp.AddJsonFile("appsettings.json");
                      configApp.AddJsonFile(
                          $"appsettings.{hostContext.HostingEnvironment.EnvironmentName}.json",
                          optional: true);
                  })
              .Build();
  
          await host.RunAsync();
      }
  </code></pre>
  
  <p>In runtime I see that the value of <code>HostingEnvironment.EnvironmentName</code> is <code>Production</code>.</p>
  
  <p>I tried to set the following environment variable in running configuration, but it didn't change the runtime: <code>ASPNETCORE_ENVIRONMENT=Development</code>.</p>
  
  <p>Where can I configure it?</p>