Skip to content

Commit c9d562b

Browse files
authored
Remove support for .NET Core 3.1 (#185)
1 parent 0538b21 commit c9d562b

File tree

12 files changed

+19
-30
lines changed

12 files changed

+19
-30
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
uses: actions/setup-dotnet@v1
2727
with:
2828
dotnet-version: |
29-
3.1.x
3029
6.0.x
3130
7.0.x
3231
- name: Dump .NET info
@@ -77,9 +76,8 @@ jobs:
7776
uses: actions/setup-dotnet@v1
7877
with:
7978
dotnet-version: |
80-
3.1
81-
6.0
82-
7.0
79+
6.0.x
80+
7.0.x
8381
- name: Dump .NET info
8482
run: dotnet --info
8583
- name: Restore dependencies
@@ -100,7 +98,7 @@ jobs:
10098
uses: actions/setup-dotnet@v1
10199
with:
102100
dotnet-version: |
103-
7.0
101+
7.0.x
104102
- uses: actions/download-artifact@v2
105103
with:
106104
name: artifacts

.github/workflows/codeql.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@ jobs:
2626
uses: actions/setup-dotnet@v1
2727
with:
2828
dotnet-version: |
29-
3.1
30-
6.0
31-
7.0
29+
6.0.x
30+
7.0.x
3231
- name: Initialize CodeQL
3332
uses: github/codeql-action/init@v2
3433
with:
3534
queries: security-and-quality
3635
languages: csharp
3736
- name: Build source code
38-
run: dotnet build --configuration Release
37+
run: dotnet build --configuration Release --framework net6.0
3938
- name: Perform CodeQL Analysis
40-
uses: github/codeql-action/analyze@v2
39+
uses: github/codeql-action/analyze@v2

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to TestableHttpClient will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and
55
this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.9] - unplanned
8+
### Removed
9+
- Official support for .NET Core 3.1 has been removed. This means we no longer provide a specific version for .NET Core 3.0 and we no longer test this version explicitly. Since we support .NET Standard 2.0, the library could still be used.
10+
711
## [0.8] - 2022-11-08
812
### Deprecated
913
- `TestableHttpMessageHandler.SimulateTimeout` is deprecated, and can be replaced with `RespondWith(Responses.Timeout())`.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ TestableHttpClient is build as a netstandard2.0 library, so theoretically it can
6060
The following versions are being actively tested and thus supported:
6161

6262
- .NET Framework 4.6 and up
63-
- .NET Core 3.1
6463
- .NET 6.0
6564
- .NET 7.0
6665

src/TestableHttpClient.NFluent/TestableHttpClient.NFluent.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
55

66
<Description>NFluent checks for checking HttpResponseMessages.</Description>
77
<PackageTags>httpclient;unittesting;dotnet;nfluent</PackageTags>

src/TestableHttpClient/TestableHttpClient.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
55

66
<Description>A simple library to make testing HttpClient and related classes easier.</Description>
77
<PackageTags>httpclient;unittesting;dotnet;mock</PackageTags>

test/TestableHttpClient.IntegrationTests/TestableHttpClient.IntegrationTests.csproj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net462;net47;net48;netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net47;net48;net6.0;net7.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
88
<PackageReference Include="System.Net.Http.Json" Version="[3.1.*,5.0.0)" />
99
</ItemGroup>
1010

11-
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
12-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="[3.1.*,5.0.0)" />
13-
<PackageReference Include="System.Net.Http.Json" Version="[3.1.*,5.0.0)" />
14-
<PackageReference Include="Microsoft.Extensions.Http" Version="[3.1.*,5.0.0)" />
15-
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="[3.1.*,5.0.0)" />
16-
</ItemGroup>
17-
1811
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
1912
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="[6.0.*,7.0.0)" />
2013
<PackageReference Include="Microsoft.Extensions.Http" Version="[6.0.*,7.0.0)" />

test/TestableHttpClient.IntegrationTests/TestingRetryMechanisms.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if NETCOREAPP || NET
1+
#if NET
22
using Microsoft.Extensions.Http;
33

44
using Polly;

test/TestableHttpClient.IntegrationTests/UsingIHttpClientFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if NETCOREAPP || NET
1+
#if NET
22
using Microsoft.AspNetCore.Builder;
33
using Microsoft.AspNetCore.Hosting;
44
using Microsoft.AspNetCore.Http;

test/TestableHttpClient.NFluent.Tests/TestableHttpClient.NFluent.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net462;net47;net48;netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net47;net48;net6.0;net7.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>

0 commit comments

Comments
 (0)