From 53fa92d1eb0a4d552474edea48777e9626e602b4 Mon Sep 17 00:00:00 2001 From: Rolf Kristensen Date: Mon, 16 Oct 2017 00:31:43 +0200 Subject: [PATCH] Introduced NetStandard1.5 by updating to NLog 4.5-beta07 (Fixed unit tests) --- .../NLog.Extensions.Logging.csproj | 11 ++++++++--- test/LoggerTests.cs | 4 ++-- test/NLog.Extensions.Logging.Tests.csproj | 4 ++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/NLog.Extensions.Logging/NLog.Extensions.Logging.csproj b/src/NLog.Extensions.Logging/NLog.Extensions.Logging.csproj index b3be463d..9d382026 100644 --- a/src/NLog.Extensions.Logging/NLog.Extensions.Logging.csproj +++ b/src/NLog.Extensions.Logging/NLog.Extensions.Logging.csproj @@ -5,7 +5,7 @@ For ASP.NET Core, use NLog.Web.AspNetCore: https://www.nuget.org/packages/NLog.Web.AspNetCore Microsoft;Julian Verdurmen - net451;net461;netstandard1.3;netstandard2.0 + net451;net461;netstandard1.3;netstandard1.5;netstandard2.0 true NLog.Extensions.Logging NLog.snk @@ -43,7 +43,7 @@ For ASP.NET Core, use NLog.Web.AspNetCore: https://www.nuget.org/packages/NLog.W - + $(DefineConstants);NETCORE @@ -54,9 +54,14 @@ For ASP.NET Core, use NLog.Web.AspNetCore: https://www.nuget.org/packages/NLog.W + + + + + - + diff --git a/test/LoggerTests.cs b/test/LoggerTests.cs index e9c0f38a..d481205e 100644 --- a/test/LoggerTests.cs +++ b/test/LoggerTests.cs @@ -60,7 +60,7 @@ public void TestMessageProperties() GetRunner().LogDebugWithMessageProperties(); var target = GetTarget(); - Assert.Equal("NLog.Extensions.Logging.Tests.LoggerTests.Runner|DEBUG|message with id and 1 property |01", target.Logs.FirstOrDefault()); + Assert.Equal("NLog.Extensions.Logging.Tests.LoggerTests.Runner|DEBUG|message with id and 1 property |1", target.Logs.FirstOrDefault()); } [Fact] @@ -69,7 +69,7 @@ public void TestScopeProperties() GetRunner().LogWithScopeParameters(); var target = GetTarget(); - Assert.Equal("NLog.Extensions.Logging.Tests.LoggerTests.Runner|DEBUG|message with id and 1 parameters |0Hello", target.Logs.FirstOrDefault()); + Assert.Equal("NLog.Extensions.Logging.Tests.LoggerTests.Runner|DEBUG|message with id and 1 parameters |Hello", target.Logs.FirstOrDefault()); } [Theory] diff --git a/test/NLog.Extensions.Logging.Tests.csproj b/test/NLog.Extensions.Logging.Tests.csproj index c7991f7a..852e2a67 100644 --- a/test/NLog.Extensions.Logging.Tests.csproj +++ b/test/NLog.Extensions.Logging.Tests.csproj @@ -16,13 +16,13 @@ - + - +