title: VSO CI - ASPNETCORE_ENVIRONMENT is set to Production no matter what I do
body: <p>I'm creating my CI pipeline in VSO and I have .net core app, I created endpoint which says to me which value was used during publishing, exposing <code>IHostingEnvironment.EnvironmentName</code> through the API, no matter what I do, it's set to <code>Produciton</code> . My app is hosted in Azure. </p>
  
  <p>The steps I did - </p>
  
  <p>I looked into Azure App Service 's application settings, looking for environment. Thinking that might overwrite my variable in Release configuration.</p>
  
  <p>I set <code>ASPNETCORE_ENVIRONMENT</code> variable on variables tab in release configuration, also I set it on specific environment. </p>
  
  <p>setting it on environment:
  <a href="https://i.stack.imgur.com/6rRDY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6rRDY.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/FQlNE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FQlNE.png" alt="enter image description here"></a></p>
  
  <p>setting it on release configuration:
  <a href="https://i.stack.imgur.com/Qy4Hb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qy4Hb.png" alt="enter image description here"></a></p>
  
  <p>And I'm also ruining the command <code>setx</code> with parameter <code>ASPNETCORE_ENVIRONMENT "Test"</code>. </p>
  
  <p><a href="https://i.stack.imgur.com/5mz8K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5mz8K.png" alt="setx command"></a></p>
  
  <p>None of the above seems to make any difference, when I query my endpoint I got back I'm running  on <code>Production</code> environment. Any help is much appreciated. </p>