Skip to content

Commit a2c49ac

Browse files
committed
Remove .NET 6 support
1 parent 8c33d36 commit a2c49ac

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
uses: actions/setup-dotnet@v4
2828
with:
2929
dotnet-version: |
30-
6.0.x
3130
8.0.x
3231
9.0.x
3332
include-prerelease: true
@@ -45,7 +44,7 @@ jobs:
4544
- name: Build source code
4645
run: dotnet build --configuration Release --no-restore
4746
- name: Test with dotnet
48-
run: dotnet test --configuration Release --no-build --collect="Code Coverage" --framework="net6.0"
47+
run: dotnet test --configuration Release --no-build --collect="Code Coverage" --framework="net8.0"
4948
- name: Upload sonarqube results
5049
if: ${{ github.actor != 'dependabot[bot]' }}
5150
env:
@@ -80,7 +79,6 @@ jobs:
8079
uses: actions/setup-dotnet@v4
8180
with:
8281
dotnet-version: |
83-
6.0.x
8482
8.0.x
8583
9.0.x
8684
include-prerelease: true

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [0.12] - unplanned
8+
### Removed
9+
- .NET 6.0 target, since it is no longer supported
810
### Added
911
- Support for .NET 9.0
1012

src/TestableHttpClient/TestableHttpClient.csproj

Lines changed: 2 additions & 6 deletions
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;net6.0;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net8.0;net9.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<PropertyGroup>
@@ -24,7 +24,7 @@
2424
<IncludeSymbols>true</IncludeSymbols>
2525
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2626
<DebugType>full</DebugType>
27-
27+
2828
<IncludeSource>true</IncludeSource>
2929
<RepositoryUrl>https://github.com/testablehttpclient/TestableHttpClient</RepositoryUrl>
3030
<RepositoryType>git</RepositoryType>
@@ -39,10 +39,6 @@
3939
<PackageReference Include="PolyKit.Embedded" Version="3.0.9" />
4040
</ItemGroup>
4141

42-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
43-
<PackageReference Include="Perfors.UnreachableException" Version="1.0.0" />
44-
</ItemGroup>
45-
4642
<ItemGroup>
4743
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4844
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" PrivateAssets="All">

test/TestableHttpClient.IntegrationTests/TestableHttpClient.IntegrationTests.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net462;net47;net48;net6.0;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net47;net48;net8.0;net9.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
88
<PackageReference Include="System.Net.Http" Version="4.3.4" />
99
<PackageReference Include="System.Net.Http.Json" Version="[8.0.*,)" />
1010
</ItemGroup>
11-
12-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
13-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="[6.0.*,7.0.0)" />
14-
<PackageReference Include="Microsoft.Extensions.Http" Version="[6.0.*,7.0.0)" />
15-
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="[6.0.*,7.0.0)" />
16-
</ItemGroup>
1711

1812
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
1913
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="[8.0.*,9.0.0)" />

test/TestableHttpClient.Tests/TestableHttpClient.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;net6.0;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net47;net48;net8.0;net9.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">

0 commit comments

Comments
 (0)