Skip to content

Commit 7215d4e

Browse files
committed
Updated .NET target frameworks
* Removed obsolete targets .NET Core 2.0 and 2.1. * Added target .NET Core 3.1 LTS.
1 parent a4a5fd1 commit 7215d4e

File tree

2 files changed

+8
-25
lines changed

2 files changed

+8
-25
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Description>A Serilog sink that writes events to Microsoft SQL Server</Description>
55
<VersionPrefix>5.6.1</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)