ASPNETCORE_ENVIRONMENT in Published Project
Typical Program.cs public Startup(IHostingEnvironment env) { // https://blog.elmah.io/config-transformations-in-aspnetcore/ // https://andrewlock.net/how-to-set-the-hosting-environment-in-asp-net-core/ // https://github.com/aspnet/Hosting/issues/863 // For dev, please remove or rename appsettings.production.json, so that it's not used var builder = new ConfigurationBuilder() .SetBasePath(env.ContentRootPath) .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true) .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true,...