Prefer uppercase ASPNETCORE_ENVIRONMENT

This commit is contained in:
BrennanConroy 2016-04-28 09:45:00 -07:00
parent e505ecbc21
commit 289b3f58d0
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ namespace Microsoft.AspNetCore.Hosting.Internal
hostingEnvironment.EnvironmentName =
options.Environment ??
Environment.GetEnvironmentVariable($"ASPNETCORE_{WebHostDefaults.EnvironmentKey}") ??
Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ??
hostingEnvironment.EnvironmentName;
}
}