title: How to set Environment Name (IHostingEnvironment.EnvironmentName)?
body: <p>Default ASP.NET Core web project contain such lines in <code>Startup.cs</code>:</p>
  
  <pre><code>if (string.Equals(env.EnvironmentName, "Development", StringComparison.OrdinalIgnoreCase))
  {
      app.UseBrowserLink();
      app.UseDeveloperExceptionPage(ErrorPageOptions.ShowAll);
  }
  else
  {
      app.UseExceptionHandler("/Home/Error");
  }
  </code></pre>
  
  <p>As I understand, the EnvironmentName is a new way to handle Dev/Production environment. But it doesn't changes on Release build configuration. So what is the way to set a different <code>EnvironmentName</code>?</p>
  
  <p>I can imagine that it should be set in "Commands" as a parameter for server.</p>