Skip to content

Commit 7853bc7

Browse files
author
Adam Hathcock
committed
Use the same targets at M.E.Logging
1 parent 553dec8 commit 7853bc7

File tree

5 files changed

+2701
-1052
lines changed

5 files changed

+2701
-1052
lines changed

samples/Sample/project.lock.json

Lines changed: 14 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,11 @@
7171
},
7272
"Serilog.Framework.Logging/1.0.0-rc1-final": {
7373
"type": "project",
74-
"framework": "DNX,Version=v4.5.1",
74+
"framework": ".NETFramework,Version=v4.5.1",
7575
"dependencies": {
7676
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
7777
"Serilog": "2.0.0-beta-423"
78-
},
79-
"frameworkAssemblies": [
80-
"System.Runtime"
81-
]
78+
}
8279
}
8380
},
8481
"DNXCore,Version=v5.0": {
@@ -192,15 +189,10 @@
192189
},
193190
"Serilog.Framework.Logging/1.0.0-rc1-final": {
194191
"type": "project",
195-
"framework": "DNXCore,Version=v5.0",
192+
"framework": ".NETPlatform,Version=v5.4",
196193
"dependencies": {
197-
"Microsoft.CSharp": "4.0.0",
198194
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
199-
"Serilog": "2.0.0-beta-423",
200-
"System.Collections": "4.0.10-beta-23516",
201-
"System.Console": "4.0.0-beta-23516",
202-
"System.Linq": "4.0.0",
203-
"System.Threading": "4.0.10-beta-23516"
195+
"Serilog": "2.0.0-beta-423"
204196
}
205197
},
206198
"System.Collections/4.0.0": {
@@ -652,14 +644,11 @@
652644
},
653645
"Serilog.Framework.Logging/1.0.0-rc1-final": {
654646
"type": "project",
655-
"framework": "DNX,Version=v4.5.1",
647+
"framework": ".NETFramework,Version=v4.5.1",
656648
"dependencies": {
657649
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
658650
"Serilog": "2.0.0-beta-423"
659-
},
660-
"frameworkAssemblies": [
661-
"System.Runtime"
662-
]
651+
}
663652
}
664653
},
665654
"DNX,Version=v4.5.1/win7-x64": {
@@ -731,14 +720,11 @@
731720
},
732721
"Serilog.Framework.Logging/1.0.0-rc1-final": {
733722
"type": "project",
734-
"framework": "DNX,Version=v4.5.1",
723+
"framework": ".NETFramework,Version=v4.5.1",
735724
"dependencies": {
736725
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
737726
"Serilog": "2.0.0-beta-423"
738-
},
739-
"frameworkAssemblies": [
740-
"System.Runtime"
741-
]
727+
}
742728
}
743729
},
744730
"DNXCore,Version=v5.0/win7-x86": {
@@ -1030,15 +1016,10 @@
10301016
},
10311017
"Serilog.Framework.Logging/1.0.0-rc1-final": {
10321018
"type": "project",
1033-
"framework": "DNXCore,Version=v5.0",
1019+
"framework": ".NETPlatform,Version=v5.4",
10341020
"dependencies": {
1035-
"Microsoft.CSharp": "4.0.0",
10361021
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
1037-
"Serilog": "2.0.0-beta-423",
1038-
"System.Collections": "4.0.10-beta-23516",
1039-
"System.Console": "4.0.0-beta-23516",
1040-
"System.Linq": "4.0.0",
1041-
"System.Threading": "4.0.10-beta-23516"
1022+
"Serilog": "2.0.0-beta-423"
10421023
}
10431024
},
10441025
"System.Collections/4.0.0": {
@@ -1797,15 +1778,10 @@
17971778
},
17981779
"Serilog.Framework.Logging/1.0.0-rc1-final": {
17991780
"type": "project",
1800-
"framework": "DNXCore,Version=v5.0",
1781+
"framework": ".NETPlatform,Version=v5.4",
18011782
"dependencies": {
1802-
"Microsoft.CSharp": "4.0.0",
18031783
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
1804-
"Serilog": "2.0.0-beta-423",
1805-
"System.Collections": "4.0.10-beta-23516",
1806-
"System.Console": "4.0.0-beta-23516",
1807-
"System.Linq": "4.0.0",
1808-
"System.Threading": "4.0.10-beta-23516"
1784+
"Serilog": "2.0.0-beta-423"
18091785
}
18101786
},
18111787
"System.Collections/4.0.0": {
@@ -3299,7 +3275,7 @@
32993275
"System.Reflection/4.1.0-beta-23225": {
33003276
"type": "package",
33013277
"serviceable": true,
3302-
"sha512": "WbLtaCxoe5XdqEyZuGpemSQ8YBJ8cj11zx+yxOxJfHbNrmu7oMQ29+J50swaqg3soUc3BVBMqfIhb/7gocDHQA==",
3278+
"sha512": "nlguo6AocBKGccv4CFSMCOR2/vU+93u/yvzFKO6ViNJ/SBz2VEZ1nOeW93vqKKpOMJkt3YtTvMWmS+kUGz/1bA==",
33033279
"files": [
33043280
"lib/DNXCore50/System.Reflection.dll",
33053281
"lib/MonoAndroid10/_._",
@@ -3794,7 +3770,7 @@
37943770
},
37953771
"System.Text.Encoding/4.0.0": {
37963772
"type": "package",
3797-
"sha512": "AMxFNOXpA6Ab8swULbXuJmoT2K5w6TnV3ObF5wsmEcIHQUJghoZtDVfVHb08O2wW15mOSI1i9Wg0Dx0pY13o8g==",
3773+
"sha512": "k4kc8Xq2Bs4x11WWtt6XMa+igtLrZAwJx1ZaB4D3/Sm4LFHSzT4mOOJIDOHa/ePyojOUtwLQdT0ywEnV5nl/9g==",
37983774
"files": [
37993775
"lib/MonoAndroid10/_._",
38003776
"lib/MonoTouch10/_._",

src/Serilog.Framework.Logging/SerilogLoggerProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)
5757
}
5858
}
5959

60-
#if DNXCORE50
60+
#if NETCORE50 || DOTNET5_4
6161
private System.Threading.AsyncLocal<SerilogLoggerScope> _value = new System.Threading.AsyncLocal<SerilogLoggerScope>();
6262
public SerilogLoggerScope CurrentScope
6363
{

src/Serilog.Framework.Logging/project.json

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,10 @@
1313

1414
"frameworks": {
1515
"net451": {
16-
"frameworkAssemblies": {
17-
"System.Runtime": ""
18-
}
1916
},
20-
"dnx451": {
21-
"frameworkAssemblies": {
22-
"System.Runtime": ""
23-
}
17+
"dotnet5.4": {
2418
},
25-
"dnxcore50": {
26-
"dependencies": {
27-
"System.Console": "4.0.0-beta-23516",
28-
"System.Collections": "4.0.10-beta-23516",
29-
"System.Linq": "4.0.0",
30-
"System.Threading": "4.0.10-beta-23516",
31-
"Microsoft.CSharp": "4.0.0"
32-
}
19+
"netcore50": {
3320
}
3421
}
3522
}

0 commit comments

Comments
 (0)