The CLI added support for launchSettings.json in dotnet/cli#6617. Unfortunately, it only works with dotnet run and thus doesn't light up in our tooling.
If we want to honor launchSettings.json (particularly environment variables and command line arguments) in our tools, we'll have to look for and parse the file ourselves.
If we do this, we should also remove our existing logic that defaults the ASPNETCORE_ENVIRONMENT variable to Development.
The CLI added support for
launchSettings.jsonin dotnet/cli#6617. Unfortunately, it only works withdotnet runand thus doesn't light up in our tooling.If we want to honor
launchSettings.json(particularly environment variables and command line arguments) in our tools, we'll have to look for and parse the file ourselves.If we do this, we should also remove our existing logic that defaults the ASPNETCORE_ENVIRONMENT variable to Development.