title: TeamCity pass EnviromentName to Asp.Net Core
body: <p>Asp.Net Core 2.2.0
  In TeamCity I have a build step to run integration-tests in my Asp.Net Core application.</p>
  
  <p>I need to pass a value for IHostingEnvironment.EnvironmentName</p>
  
  <p>How to do this ? </p>
  
  <pre class="lang-cs prettyprint-override"><code>using Microsoft.AspNetCore.Hosting;
  namespace MyApp
  {
      public class Startup
      {
          public Startup(IHostingEnvironment env)
          {
              // do something with env.EnvironmentName
          }
      }
  }
  </code></pre>