diff --git a/src/Serilog/project.json b/src/Serilog/project.json index 692b5faf5..4812d082e 100644 --- a/src/Serilog/project.json +++ b/src/Serilog/project.json @@ -1,5 +1,5 @@ { - "version": "2.2.0-*", + "version": "2.2.1-*", "description": "Simple .NET logging with fully-structured events", "authors": [ "Serilog Contributors" ], @@ -22,6 +22,11 @@ "define": [ "REMOTING" ] } }, + "net4.6": { + "buildOptions": { + "define": [ "ASYNCLOCAL" ] + } + }, "netstandard1.0": { "dependencies": { "Microsoft.CSharp": "4.0.1", diff --git a/test/Serilog.Tests/Context/LogContextTests.cs b/test/Serilog.Tests/Context/LogContextTests.cs index c8e9bc3f0..17987f2ad 100644 --- a/test/Serilog.Tests/Context/LogContextTests.cs +++ b/test/Serilog.Tests/Context/LogContextTests.cs @@ -3,9 +3,11 @@ using Serilog.Events; using Serilog.Core.Enrichers; using Serilog.Tests.Support; -#if REMOTING +#if APPDOMAIN using System; using System.IO; +#endif +#if REMOTING using System.Runtime.Remoting.Messaging; #endif using System.Threading; @@ -155,7 +157,7 @@ public void DoesNotPreventCrossDomainCalls() #endif } -#if REMOTING +#if REMOTING || APPDOMAIN public class RemotelyCallable : MarshalByRefObject { public bool IsCallable() diff --git a/test/Serilog.Tests/project.json b/test/Serilog.Tests/project.json index 81944f80d..8212a8a23 100644 --- a/test/Serilog.Tests/project.json +++ b/test/Serilog.Tests/project.json @@ -17,6 +17,11 @@ "define": [ "APPDOMAIN", "REMOTING", "GETCURRENTMETHOD" ] } }, + "net4.6": { + "buildOptions": { + "define": [ "ASYNCLOCAL", "APPDOMAIN", "GETCURRENTMETHOD" ] + } + }, "netcoreapp1.0": { "define": [ "ASYNCLOCAL" ], "dependencies": {