title: Hosting Environment Asp.net Core on Service Fabric local cluster
body: <p>I'm having hard time setting the Hosting Environment to "Development" for my <strong>Asp.net Core Stateless Service</strong> hosted in a local Service Fabric Cluster.</p>
  
  <p>I set the variable ASPNETCORE_ENVIRONMENT to Development in my machine, and in all the config in the Asp.net Core project</p>
  
  <p><a href="https://i.stack.imgur.com/mp73M.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mp73M.jpg" alt="enter image description here"></a></p>
  
  <p>But during debug </p>
  
  <pre><code>env.IsDevelopment()
  </code></pre>
  
  <p>ia always false.</p>
  
  <p>How can I solve this?</p>