Skip to content

Commit 186a476

Browse files
authored
Merge pull request #361 from ckadluba/dev
Updated .NET target frameworks
2 parents 33a0742 + 1a27e26 commit 186a476

File tree

3 files changed

+11
-28
lines changed

3 files changed

+11
-28
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ Because of the way external configuration has been implemented in various .NET f
9191
| .NET Framework 4.6.1+ | `net461` | app or library | _System.Configuration_ |
9292
| .NET Framework 4.6.1+ | `net461` | app or library | _Microsoft.Extensions.Configuration_ |
9393
| .NET Standard 2.0 | `netstandard2.0` | library only | _Microsoft.Extensions.Configuration_ |
94-
| .NET Core 2.0+ | `netcoreapp2.0` | app or library | _System.Configuration_ |
95-
| .NET Core 2.0+ | `netcoreapp2.0` | app or library | _Microsoft.Extensions.Configuration_ |
94+
| .NET Core 3.1+ | `netcoreapp3.1` | app or library | _System.Configuration_ |
95+
| .NET Core 3.1+ | `netcoreapp3.1` | app or library | _Microsoft.Extensions.Configuration_ |
9696

9797
Support for .NET Framework 4.5.2 is tied to the Windows 8.1 lifecycle with support scheduled to end in January 2023.
9898

src/Serilog.Sinks.MSSqlServer/Serilog.Sinks.MSSqlServer.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<PropertyGroup>
44
<Description>A Serilog sink that writes events to Microsoft SQL Server</Description>
5-
<VersionPrefix>5.6.1</VersionPrefix>
5+
<VersionPrefix>5.7.0</VersionPrefix>
66
<Authors>Michiel van Oudheusden;Christian Kadluba;Serilog Contributors</Authors>
7-
<TargetFrameworks>netstandard2.0;net452;net461;net472;netcoreapp2.0;netcoreapp2.1</TargetFrameworks>
7+
<TargetFrameworks>netstandard2.0;net452;net461;net472;netcoreapp3.1</TargetFrameworks>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1010
<AssemblyName>Serilog.Sinks.MSSqlServer</AssemblyName>
@@ -67,8 +67,7 @@
6767
<Compile Include="Configuration\Implementations\Microsoft.Extensions.Configuration\**\*.cs" />
6868
<Compile Include="Sinks\MSSqlServer\Platform\AzureManagedServiceAuthenticatorStub.cs" />
6969
</ItemGroup>
70-
71-
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' Or '$(TargetFramework)' == 'net461' ">
70+
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
7271
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
7372
<PackageReference Include="Microsoft.Data.SqlClient" Version="1.1.3" />
7473
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.0" />
@@ -79,7 +78,7 @@
7978
<Compile Include="Sinks\MSSqlServer\Platform\AzureManagedServiceAuthenticatorStub.cs" />
8079
</ItemGroup>
8180

82-
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' Or '$(TargetFramework)' == 'net472' ">
81+
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' Or '$(TargetFramework)' == 'net472' ">
8382
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
8483
<PackageReference Include="Microsoft.Data.SqlClient" Version="1.1.3" />
8584
<PackageReference Include="Microsoft.Azure.Services.AppAuthentication" Version="1.4.0" />

test/Serilog.Sinks.MSSqlServer.Tests/Serilog.Sinks.MSSqlServer.Tests.csproj

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net452;netcoreapp2.0;netcoreapp2.1</TargetFrameworks>
4+
<TargetFrameworks>net452;netcoreapp3.1</TargetFrameworks>
55
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.0</TargetFrameworks>
66
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
77
<AssemblyName>Serilog.Sinks.MSSqlServer.Tests</AssemblyName>
@@ -51,26 +51,7 @@
5151
<Compile Include="Sinks\MSSqlServer\Platform\AzureManagedServiceAuthenticatorStubTests.cs" />
5252
</ItemGroup>
5353

54-
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
55-
<PackageReference Include="System.Collections" Version="4.3.0" />
56-
<PackageReference Include="System.Runtime.InteropServices" Version="4.3.0" />
57-
<PackageReference Include="System.Runtime.Extensions" Version="4.3.1" />
58-
<PackageReference Include="System.IO.FileSystem.Primitives" Version="4.3.0" />
59-
<PackageReference Include="System.Resources.ResourceManager" Version="4.3.0" />
60-
<PackageReference Include="System.Text.Encoding.Extensions" Version="4.3.0" />
61-
<PackageReference Include="xunit" Version="2.4.1" />
62-
<PackageReference Include="xunit.core" Version="2.4.1" />
63-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
64-
<PrivateAssets>all</PrivateAssets>
65-
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
66-
</PackageReference>
67-
<Compile Include="Configuration\Extensions\Hybrid\**\*.cs" />
68-
<Compile Include="Configuration\Implementations\Microsoft.Extensions.Configuration\**\*.cs" />
69-
<Compile Include="Configuration\Implementations\System.Configuration\**\*.cs" />
70-
<Compile Include="Sinks\MSSqlServer\Platform\AzureManagedServiceAuthenticatorStubTests.cs" />
71-
</ItemGroup>
72-
73-
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">
54+
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
7455
<PackageReference Include="System.Collections" Version="4.3.0" />
7556
<PackageReference Include="System.Runtime.InteropServices" Version="4.3.0" />
7657
<PackageReference Include="System.Runtime.Extensions" Version="4.3.1" />
@@ -86,6 +67,9 @@
8667
<Compile Remove="**\*.*" />
8768
<Compile Include="GlobalSuppressions.cs" />
8869
<Compile Include="TestUtils\**\*.cs" />
70+
<Compile Include="Configuration\Extensions\Hybrid\**\*.cs" />
71+
<Compile Include="Configuration\Implementations\Microsoft.Extensions.Configuration\**\*.cs" />
72+
<Compile Include="Configuration\Implementations\System.Configuration\**\*.cs" />
8973
<Compile Include="Sinks\MSSqlServer\Platform\AzureManagedServiceAuthenticatorTests.cs" />
9074
</ItemGroup>
9175

0 commit comments

Comments
 (0)