I am developing an ASP.NET 5 Web API app using Visual Studio code on Mac. I manually modified my Properties/launchSettings.json
file to set environment to Sta
LaunchSettings.json is strictly a VS concept. In other cases, you will have to configure environment variables as commands below:
For standard command line run, use:
set ASPNET_ENV=Development
dnx web
For powershell, use:
$env:ASPNET_ENV='Development'
dnx web
Shorter version: dnx web ASPNET_ENV=Development