Is launchSettings.json used when running ASP.NET 5 apps from the command line on Mac?
<p>I am developing an ASP.NET 5 Web API app using Visual Studio code on Mac. I manually modified my <code>Properties/launchSettings.json</code> file to set environment to <code>Staging</code> for all profiles using <code>ASPNET_ENV</code> environment variable:
<a href="https://i.stack.imgur.com/r6xC8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r6xC8.png" alt="enter image description here"></a> </p>

<p>However, when I run <code>dnx web</code> in Mac terminal to start the app, I still get <code>Production</code> environment:
<a href="https://i.stack.imgur.com/6aWTh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6aWTh.png" alt="enter image description here"></a></p>

<p>Can I use <code>launchSettings.json</code> to specify environment variables (and, thus, environment types) if I use Visual Studio Code on Mac? Or is it specific to full Visual Studio?</p>

<p>ASP.NET 5 docs <a href="http://docs.asp.net/en/latest/fundamentals/environments.html" rel="nofollow noreferrer">suggest</a> that <code>launchSettings.json</code> can be used to inject environment variables. However, <a href="https://stackoverflow.com/questions/28258227/how-to-set-ihostingenvironment-environmentname-in-vnext-application">this SO discussion</a> suggests passing them through commands.</p>