set ASPNETCORE_ENVIRONMENT=Production
Console.WriteLine(Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"));
References
https://stackoverflow.com/questions/37387235/read-environment-variables-in-asp-net-core
Daily Notes of a Programmer
set ASPNETCORE_ENVIRONMENT=Production
Console.WriteLine(Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"));
References
https://stackoverflow.com/questions/37387235/read-environment-variables-in-asp-net-core