Skip to content

Commit e8cbe1e

Browse files
committed
[BREAKING]: Target .NET 4.6.2 and Updated Exceptionless.NET to 6.0
1 parent d9210ba commit e8cbe1e

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

.github/workflows/build-linux.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
- name: Setup .NET Core
1414
uses: actions/setup-dotnet@v1
1515
with:
16-
dotnet-version: 5.x
16+
dotnet-version: 6.x
1717
- name: Build Reason
1818
run: "echo ref: ${{github.ref}} event: ${{github.event_name}}"
1919
- name: Build Version
2020
shell: bash
2121
run: |
22-
dotnet tool install --global minver-cli --version 2.5.0
22+
dotnet tool install --global minver-cli --version 4.3.0
2323
version=$(minver --tag-prefix v)
2424
echo "MINVERVERSIONOVERRIDE=$version" >> $GITHUB_ENV
2525
- name: Build

.github/workflows/build-osx.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
- name: Setup .NET Core
1414
uses: actions/setup-dotnet@v1
1515
with:
16-
dotnet-version: 5.x
16+
dotnet-version: 6.x
1717
- name: Build Reason
1818
run: "echo ref: ${{github.ref}} event: ${{github.event_name}}"
1919
- name: Build Version
2020
shell: bash
2121
run: |
22-
dotnet tool install --global minver-cli --version 2.5.0
22+
dotnet tool install --global minver-cli --version 4.3.0
2323
version=$(minver --tag-prefix v)
2424
echo "MINVERVERSIONOVERRIDE=$version" >> $GITHUB_ENV
2525
- name: Build

.github/workflows/build-windows.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
- name: Setup .NET Core
1414
uses: actions/setup-dotnet@v1
1515
with:
16-
dotnet-version: 5.x
16+
dotnet-version: 6.x
1717
- name: Build Reason
1818
run: "echo ref: ${{github.ref}} event: ${{github.event_name}}"
1919
- name: Build Version
2020
shell: bash
2121
run: |
22-
dotnet tool install --global minver-cli --version 2.5.0
22+
dotnet tool install --global minver-cli --version 4.3.0
2323
version=$(minver --tag-prefix v)
2424
echo "MINVERVERSIONOVERRIDE=$version" >> $GITHUB_ENV
2525
- name: Build

.vscode/tasks.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "2.0.0",
55
"tasks": [
66
{
7-
"taskName": "build",
7+
"label": "build",
88
"command": "dotnet build",
99
"type": "shell",
1010
"group": {

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ Log.Logger = new LoggerConfiguration()
3838

3939
* [Documentation](https://github.com/serilog/serilog/wiki)
4040

41-
Copyright © 2017 Serilog Contributors - Provided under the [Apache License, Version 2.0](http://apache.org/licenses/LICENSE-2.0.html).
41+
Copyright © 2023 Serilog Contributors - Provided under the [Apache License, Version 2.0](http://apache.org/licenses/LICENSE-2.0.html).

sample/ConsoleDemo/ConsoleDemo.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFrameworks>net50</TargetFrameworks>
4+
<TargetFrameworks>net60</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77
<ItemGroup>
88
<ProjectReference Include="..\..\src\Serilog.Sinks.Exceptionless\Serilog.Sinks.Exceptionless.csproj" />
99
</ItemGroup>
1010
<ItemGroup>
11-
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.0" />
11+
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
1212
</ItemGroup>
1313
</Project>

sample/SampleWeb/SampleWeb.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net5.0</TargetFramework>
3+
<TargetFramework>net6.0</TargetFramework>
44
<IsPackable>false</IsPackable>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Exceptionless.AspNetCore" Version="4.6.2" />
9-
<PackageReference Include="Serilog.AspNetCore" Version="4.1.0" />
8+
<PackageReference Include="Exceptionless.AspNetCore" Version="6.0.0" />
9+
<PackageReference Include="Serilog.AspNetCore" Version="6.1.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

src/Serilog.Sinks.Exceptionless/Serilog.Sinks.Exceptionless.csproj

+6-6
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<TargetFramework>netstandard2.0</TargetFramework>
4242
</PropertyGroup>
4343
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
44-
<TargetFrameworks>netstandard2.0;net452</TargetFrameworks>
44+
<TargetFrameworks>netstandard2.0;net462</TargetFrameworks>
4545
</PropertyGroup>
4646

4747
<PropertyGroup Label="Signing">
@@ -56,12 +56,12 @@
5656
</ItemGroup>
5757

5858
<ItemGroup>
59-
<PackageReference Include="Exceptionless" Version="4.6.2" />
60-
<PackageReference Include="Serilog" Version="2.10.0" />
59+
<PackageReference Include="Exceptionless" Version="6.0.0" />
60+
<PackageReference Include="Serilog" Version="2.12.0" />
6161

62-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
63-
<PackageReference Include="AsyncFixer" Version="1.5.1" PrivateAssets="All" />
64-
<PackageReference Include="MinVer" Version="2.5.0" PrivateAssets="All" />
62+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
63+
<PackageReference Include="AsyncFixer" Version="1.6.0" PrivateAssets="All" />
64+
<PackageReference Include="MinVer" Version="4.3.0" PrivateAssets="All" />
6565
</ItemGroup>
6666

6767
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">

src/Serilog.Sinks.Exceptionless/Sinks/Exceptionless/ExceptionlessSink.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using Exceptionless;
44
using Exceptionless.Dependency;
@@ -145,7 +145,7 @@ public void Emit(LogEvent logEvent) {
145145
}
146146

147147
void IDisposable.Dispose() {
148-
_client?.ProcessQueue();
148+
_client?.ProcessQueueAsync().GetAwaiter().GetResult();
149149
}
150150
}
151151
}

0 commit comments

Comments
 (0)