From 65ea71d253dd78c7cbb96ea076075c33b1655e62 Mon Sep 17 00:00:00 2001 From: Rolf Kristensen Date: Sat, 12 Dec 2020 23:26:15 +0100 Subject: [PATCH 1/2] ASPNETCORE_ENVIRONMENT should take precedence over DOTNET_ENVIRONMENT --- src/NLog.Web.AspNetCore/Config/SetupBuilderExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NLog.Web.AspNetCore/Config/SetupBuilderExtensions.cs b/src/NLog.Web.AspNetCore/Config/SetupBuilderExtensions.cs index 09c6f6bd..b25a6d85 100644 --- a/src/NLog.Web.AspNetCore/Config/SetupBuilderExtensions.cs +++ b/src/NLog.Web.AspNetCore/Config/SetupBuilderExtensions.cs @@ -20,7 +20,7 @@ public static class SetupBuilderExtensions /// public static ISetupBuilder LoadConfigurationFromAppSettings(this ISetupBuilder setupBuilder, string basePath = null, string environment = null, string nlogConfigSection = "NLog", bool optional = true, bool reloadOnChange = false) { - environment = environment ?? GetAspNetCoreEnvironment("DOTNET_ENVIRONMENT") ?? GetAspNetCoreEnvironment("ASPNETCORE_ENVIRONMENT") ?? "Production"; + environment = environment ?? GetAspNetCoreEnvironment("ASPNETCORE_ENVIRONMENT") ?? GetAspNetCoreEnvironment("DOTNET_ENVIRONMENT") ?? "Production"; var builder = new ConfigurationBuilder() // Host Configuration From 55216af20c0816a9fee26e41b247bb114618781c Mon Sep 17 00:00:00 2001 From: Rolf Kristensen Date: Sat, 12 Dec 2020 23:34:54 +0100 Subject: [PATCH 2/2] PackageIconUrl + PackageLicenseUrl have been deprecated --- src/NLog.Web.AspNetCore/NLog.Web.AspNetCore.csproj | 10 ++++++++-- src/NLog.Web/NLog.Web.csproj | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/NLog.Web.AspNetCore/NLog.Web.AspNetCore.csproj b/src/NLog.Web.AspNetCore/NLog.Web.AspNetCore.csproj index 9289306b..a5c201c9 100644 --- a/src/NLog.Web.AspNetCore/NLog.Web.AspNetCore.csproj +++ b/src/NLog.Web.AspNetCore/NLog.Web.AspNetCore.csproj @@ -27,9 +27,9 @@ Supported platforms: See also https://github.com/NLog/NLog.Web/releases - https://nlog-project.org/N.png + N.png https://github.com/NLog/NLog.Web - https://github.com/NLog/NLog.Web/blob/master/LICENSE + BSD-3-Clause git git://github.com/NLog/NLog.Web true @@ -41,6 +41,12 @@ See also https://github.com/NLog/NLog.Web/releases true $(Title) + + + + + + ASP.NET Core 1 integration for NLog - .NET Framework 4.5.1+ true diff --git a/src/NLog.Web/NLog.Web.csproj b/src/NLog.Web/NLog.Web.csproj index b38c77f5..eda6f023 100644 --- a/src/NLog.Web/NLog.Web.csproj +++ b/src/NLog.Web/NLog.Web.csproj @@ -22,9 +22,9 @@ For ASP.NET Core: Check https://www.nuget.org/packages/NLog.Web.AspNetCore See https://github.com/NLog/NLog.Web/releases - https://nlog-project.org/N.png + N.png https://github.com/NLog/NLog.Web - https://github.com/NLog/NLog.Web/blob/master/LICENSE + BSD-3-Clause git https://github.com/NLog/NLog.Web.git @@ -37,6 +37,12 @@ For ASP.NET Core: Check https://www.nuget.org/packages/NLog.Web.AspNetCore $(Title) true + + + + + +