In launchSettings.json, some variable are defined and application using these variables. When I am running application normally, then environment variables available into the launchSettings.json successfully loaded and app running perfectly. But when I am trying to add migrations, then ef tool ignoring the launchSettings.json file.
launchSettings.json looks like
{ "MIN_LOG_LEVEL" : "Warn" }
Code to read launchSettings.json variables as
config.AddEnvironmentVariables();
string logLevel = config["MIN_LOG_LEVEL"] // returing null
Some snapshots of code
Update: I tried with both IIS and Kestrel Server, but in both cases this issue is occurring.

