Skip to content

Commit 556401a

Browse files
Add support for .NET 6.0 & Serilog 2.12.0 (#45)
1 parent a9489a6 commit 556401a

20 files changed

+40
-33
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,32 @@ jobs:
2626
fail-fast: false
2727
matrix:
2828
job:
29-
- os: ubuntu-20.04
29+
- os: ubuntu-22.04
3030
build: ./build.sh
3131
push: true
32-
- os: windows-2019
33-
build: ./build.cmd
3432
- os: windows-2022
3533
build: ./build.cmd
36-
- os: macos-11
34+
- os: macos-12
3735
build: ./build.sh
3836
name: ${{ matrix.job.os }}
3937
runs-on: ${{ matrix.job.os }}
4038
steps:
4139
- name: Setup netcoreapp3.1
4240
uses: actions/[email protected]
4341
with:
44-
dotnet-version: "3.1.413"
42+
dotnet-version: "3.1.426"
4543
- name: Setup net5.0
4644
uses: actions/[email protected]
4745
with:
48-
dotnet-version: "5.0.401"
46+
dotnet-version: "5.0.408"
47+
- name: Setup net6.0
48+
uses: actions/[email protected]
49+
with:
50+
dotnet-version: "6.0.404"
51+
- name: Setup net7.0
52+
uses: actions/[email protected]
53+
with:
54+
dotnet-version: "7.0.101"
4955
- name: Run dotnet --info
5056
run: dotnet --info
5157
- uses: actions/[email protected]

Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<Project>
22

33
<PropertyGroup>
4-
<LangVersion>9.0</LangVersion>
4+
<LangVersion>11.0</LangVersion>
5+
<NoWarn>$(NoWarn);NU5048;CS8032</NoWarn>
56
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
67
<TreatSpecificWarningsAsErrors />
78
<CheckEolTargetFramework>false</CheckEolTargetFramework>

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2021 C. Augusto Proiete & Contributors
189+
Copyright 2021-2022 C. Augusto Proiete & Contributors
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@ Click on the [Releases](https://github.com/serilog-contrib/serilog-enrichers-glo
135135

136136
---
137137

138-
_Copyright &copy; 2021 C. Augusto Proiete & Contributors - Provided under the [Apache License, Version 2.0](LICENSE)._
138+
_Copyright &copy; 2021-2022 C. Augusto Proiete & Contributors - Provided under the [Apache License, Version 2.0](LICENSE)._

global.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
3-
"allowPrerelease": true,
4-
"version": "5.0.100",
5-
"rollForward": "latestMajor"
3+
"allowPrerelease": false,
4+
"version": "7.0.100",
5+
"rollForward": "latestFeature"
66
}
77
}

sample/ConsoleSample/ConsoleSample.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net5.0;netstandard2.0;net45</TargetFrameworks>
5+
<TargetFrameworks>net6.0;net5.0;netstandard2.0;net45</TargetFrameworks>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Serilog" Version="2.11.0" />
10-
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.1" />
9+
<PackageReference Include="Serilog" Version="2.12.0" />
10+
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

sample/ConsoleSample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region Copyright 2021 C. Augusto Proiete & Contributors
1+
#region Copyright 2021-2022 C. Augusto Proiete & Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

serilog-enrichers-globallogcontext.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.31402.337
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.4.33205.214
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{3F07477D-F01B-488D-91E6-3378AEB6FDFC}"
77
EndProject

src/Serilog.Enrichers.GlobalLogContext/Context/GlobalLogContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region Copyright 2021 C. Augusto Proiete & Contributors
1+
#region Copyright 2021-2022 C. Augusto Proiete & Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/Serilog.Enrichers.GlobalLogContext/Enrichers/GlobalLogContext/GlobalLogContextEnricher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#region Copyright 2021 C. Augusto Proiete & Contributors
1+
#region Copyright 2021-2022 C. Augusto Proiete & Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)