From 6e00ceefbc388e09a6ce0241134f2897474eb902 Mon Sep 17 00:00:00 2001 From: Sergey Komisarchik Date: Tue, 21 Feb 2017 10:07:38 +0300 Subject: [PATCH] issue12 --- .../Enrichers/EnvironmentUserNameEnricher.cs | 6 +----- src/Serilog.Enrichers.Environment/project.json | 7 +++---- test/Serilog.Enrichers.Environment.Tests/project.json | 4 ++-- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/Serilog.Enrichers.Environment/Enrichers/EnvironmentUserNameEnricher.cs b/src/Serilog.Enrichers.Environment/Enrichers/EnvironmentUserNameEnricher.cs index 09ec040..98209d0 100644 --- a/src/Serilog.Enrichers.Environment/Enrichers/EnvironmentUserNameEnricher.cs +++ b/src/Serilog.Enrichers.Environment/Enrichers/EnvironmentUserNameEnricher.cs @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#if !DOTNET5_1 - using System; using Serilog.Core; using Serilog.Events; @@ -55,6 +53,4 @@ private static string GetEnvironmentUserName() return !string.IsNullOrWhiteSpace(userDomainName) ? $@"{userDomainName}\{userName}" : userName; } } -} - -#endif +} \ No newline at end of file diff --git a/src/Serilog.Enrichers.Environment/project.json b/src/Serilog.Enrichers.Environment/project.json index 5248415..9f6dc9f 100644 --- a/src/Serilog.Enrichers.Environment/project.json +++ b/src/Serilog.Enrichers.Environment/project.json @@ -23,12 +23,11 @@ }, "frameworks": { "net4.5": { - "define": ["ENV_USER_NAME"] + "buildOptions": { + "define": [ "ENV_USER_NAME" ] + } }, "netstandard1.3": { - "dependencies": { - "System.Runtime.Extensions": "4.1.0" - } } } } diff --git a/test/Serilog.Enrichers.Environment.Tests/project.json b/test/Serilog.Enrichers.Environment.Tests/project.json index f09cf60..1e809cf 100644 --- a/test/Serilog.Enrichers.Environment.Tests/project.json +++ b/test/Serilog.Enrichers.Environment.Tests/project.json @@ -11,7 +11,6 @@ "keyFile": "../../assets/Serilog.snk" }, "frameworks": { - "net4.6": { }, "netcoreapp1.0": { "dependencies": { "Microsoft.NETCore.App": { @@ -23,6 +22,7 @@ "dnxcore50", "portable-net45+win8" ] - } + }, + "net4.6": {} } } \ No newline at end of file