Skip to content

Commit

Permalink
chore: removed .NET Core 3.1 target framework from Correlate.AspNetCo…
Browse files Browse the repository at this point in the history
…re (EOL) (#113)
  • Loading branch information
skwasjer authored Sep 8, 2024
1 parent 62bcffd commit 42a0386
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ Please consider that .NET Core 3.1 and up now has built-in support for [W3C Trac

### Supported .NET targets
- .NET 6.0, .NET 8.0
- .NET Standard 2.0/.NET Core 3.1
- .NET Standard 2.0

### ASP.NET Core support
- ASP.NET Core 6.0/8.0

### Build requirements
### Build/test requirements
- Visual Studio 2022
- .NET 8 SDK
- .NET 6 SDK
Expand Down
2 changes: 1 addition & 1 deletion src/Correlate.AspNetCore/Correlate.AspNetCore.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net6.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net8.0;net6.0</TargetFrameworks>
<RootNamespace>Correlate</RootNamespace>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ public IntegrationTests(TestAppFactory<Startup> factory)

public void Dispose()
{
#if NETCOREAPP3_1
// NET Core 3.1 test host does not trigger application stopping token, but our diagnostics observable
// (subscribed in UseCorrelate) must unsubscribe before next test run.
// This is a bit crude but later versions of .NET test host do it properly.
// ReSharper disable once ConditionalAccessQualifierIsNonNullableAccordingToAPIContract
IHostApplicationLifetime? appLifetime = _factory?.Services.GetRequiredService<IHostApplicationLifetime>();
appLifetime?.StopApplication();
#endif
// ReSharper disable ConditionalAccessQualifierIsNonNullableAccordingToAPIContract
_factory?.Dispose();
_mockHttp?.Dispose();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFrameworks>net8.0;net6.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net8.0;net6.0</TargetFrameworks>
<IsTestProject>true</IsTestProject>
<RootNamespace>Correlate</RootNamespace>
</PropertyGroup>
Expand All @@ -16,11 +16,6 @@
<Serilog_AspNetCore>6.1.0</Serilog_AspNetCore>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
<Microsoft_AspNetCore_Mvc_Testing>3.1.32</Microsoft_AspNetCore_Mvc_Testing>
<Serilog_AspNetCore>6.1.0</Serilog_AspNetCore>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="$(Microsoft_AspNetCore_Mvc_Testing)" />
<PackageReference Include="Serilog.AspNetCore" Version="$(Serilog_AspNetCore)" />
Expand Down

0 comments on commit 42a0386

Please sign in to comment.