Skip to content

Commit

Permalink
chore: remove .NET 7 because it is EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
skwasjer committed Sep 5, 2024
1 parent de01038 commit 7af7e7f
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 20 deletions.
1 change: 0 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ env:
DOTNET_NOLOGO: true
dotnet-version: |
8.0.x
7.0.x
6.0.x
5.0.x
3.1.x
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ env:
DOTNET_NOLOGO: true
dotnet-version: |
8.0.x
7.0.x
6.0.x
5.0.x
3.1.x
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ env:
DOTNET_NOLOGO: true
dotnet-version: |
8.0.x
7.0.x
6.0.x
5.0.x
3.1.x
Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp.Json/MockHttp.Json.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net7.0;net6.0;netstandard2.1;netstandard2.0;net48;net472;net462</TargetFrameworks>
<TargetFrameworks>net8.0;net6.0;netstandard2.1;netstandard2.0;net48;net472;net462</TargetFrameworks>
<PackageId>skwas.MockHttp.Json</PackageId>
<AssemblyName>skwas.MockHttp.Json</AssemblyName>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp.Server/MockHttp.Server.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net7.0;net6.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net8.0;net6.0;netcoreapp3.1</TargetFrameworks>
<PackageId>skwas.MockHttp.Server</PackageId>
<AssemblyName>skwas.MockHttp.Server</AssemblyName>
<RootNamespace>MockHttp</RootNamespace>
Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/Matchers/Patterns/RegexPatternMatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ internal class RegexPatternMatcher : PatternMatcher
{
public RegexPatternMatcher
(
#if NET7_0_OR_GREATER
#if NET8_0_OR_GREATER
[StringSyntax(StringSyntaxAttribute.Regex)]
#endif
string regex
Expand Down
2 changes: 1 addition & 1 deletion src/MockHttp/MockHttp.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net7.0;net6.0;netstandard2.1;netstandard2.0;net48;net472;net462</TargetFrameworks>
<TargetFrameworks>net8.0;net6.0;netstandard2.1;netstandard2.0;net48;net472;net462</TargetFrameworks>
<PackageId>skwas.MockHttp</PackageId>
<AssemblyName>skwas.MockHttp</AssemblyName>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Json.Tests/MockHttp.Json.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1;net48;net472;net462</TargetFrameworks>
<TargetFrameworks>net8.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1;net48;net472;net462</TargetFrameworks>

<IsTestProject>true</IsTestProject>

Expand Down
3 changes: 1 addition & 2 deletions test/MockHttp.Server.Tests/MockHttp.Server.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

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

<IsTestProject>true</IsTestProject>

<RootNamespace>MockHttp</RootNamespace>
<SerilogExtensionsLoggingVersion>8.0.0</SerilogExtensionsLoggingVersion>
<SerilogExtensionsLoggingVersion Condition="$(TargetFramework)=='net7.0'">7.0.0</SerilogExtensionsLoggingVersion>
<SerilogExtensionsLoggingVersion Condition="$(TargetFramework)=='net6.0' Or $(TargetFramework)=='netcoreapp3.1'">3.1.0</SerilogExtensionsLoggingVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Testing/MockHttp.Testing.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1;net48;net472;net462</TargetFrameworks>
<TargetFrameworks>net8.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1;net48;net472;net462</TargetFrameworks>

<IsTestProject>false</IsTestProject>

Expand Down
9 changes: 1 addition & 8 deletions test/MockHttp.Tests/Http/HttpHeadersCollectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,13 @@ public void Given_single_header_string_when_parsing_should_return_key_with_one_o
[InlineData("no-separator", "The value cannot be null or empty.*")]
#if NET8_0_OR_GREATER
[InlineData(":value", "The value cannot be an empty string or composed entirely of whitespace.*")]
#else
[InlineData(":value", "The value cannot be null or empty.*")]
#endif
#if NET7_0_OR_GREATER
#if NET8_0_OR_GREATER
[InlineData(" :value", "The value cannot be an empty string or composed entirely of whitespace.*")]
#else
[InlineData(" :value", "The header name ' ' has an invalid format.")]
#endif
[InlineData(" leading-whitespace-not-allowed:value", "The header name ' leading-whitespace-not-allowed' has an invalid format.")]
[InlineData("\tleading-whitespace-not-allowed:value", "The header name '\tleading-whitespace-not-allowed' has an invalid format.")]
[InlineData("trailing-whitespace-not-allowed :value", "The header name 'trailing-whitespace-not-allowed ' has an invalid format.")]
[InlineData("trailing-whitespace-not-allowed\t:value", "The header name 'trailing-whitespace-not-allowed\t' has an invalid format.")]
#else
[InlineData(":value", "The value cannot be null or empty.*")]
[InlineData(" :value", "The header name format is invalid.")]
[InlineData(" leading-whitespace-not-allowed:value", "The header name format is invalid.")]
[InlineData("\tleading-whitespace-not-allowed:value", "The header name format is invalid.")]
Expand Down
2 changes: 1 addition & 1 deletion test/MockHttp.Tests/MockHttp.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1;net48;net472;net462</TargetFrameworks>
<TargetFrameworks>net8.0;net6.0;net5.0;netcoreapp3.1;netcoreapp2.1;net48;net472;net462</TargetFrameworks>

<IsTestProject>true</IsTestProject>

Expand Down

0 comments on commit 7af7e7f

Please sign in to comment.