From c7f34328742c8ff3dcd21782e141bc106680f31c Mon Sep 17 00:00:00 2001 From: Arman Ossi Loko Date: Fri, 15 Nov 2024 06:13:32 +0100 Subject: [PATCH 1/2] Added net9.0 target framework to all projects --- .../ProblemDetails.MinimalApiSample.csproj | 4 ++-- .../ProblemDetails.Mvc.Sample.csproj | 2 +- .../SpaFallback.Sample/SpaFallback.Sample.csproj | 2 +- .../Authentication.JwtBearer.Google.csproj | 10 ++++++++-- src/ProblemDetails/ProblemDetails.csproj | 11 ++++++++--- src/RateLimiting/RateLimiting.csproj | 9 +++++++-- src/SpaFallback/SpaFallback.csproj | 4 ++-- test/Directory.Build.props | 16 ++++++++++++++-- 8 files changed, 43 insertions(+), 15 deletions(-) diff --git a/samples/ProblemDetails.MinimalApiSample/ProblemDetails.MinimalApiSample.csproj b/samples/ProblemDetails.MinimalApiSample/ProblemDetails.MinimalApiSample.csproj index 6bd4760..28cd120 100644 --- a/samples/ProblemDetails.MinimalApiSample/ProblemDetails.MinimalApiSample.csproj +++ b/samples/ProblemDetails.MinimalApiSample/ProblemDetails.MinimalApiSample.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 enable enable Hellang.Middleware.ProblemDetails.MinimalApiSample @@ -8,7 +8,7 @@ - + diff --git a/samples/ProblemDetails.Mvc.Sample/ProblemDetails.Mvc.Sample.csproj b/samples/ProblemDetails.Mvc.Sample/ProblemDetails.Mvc.Sample.csproj index e442c55..88a6c2a 100644 --- a/samples/ProblemDetails.Mvc.Sample/ProblemDetails.Mvc.Sample.csproj +++ b/samples/ProblemDetails.Mvc.Sample/ProblemDetails.Mvc.Sample.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 enable enable diff --git a/samples/SpaFallback.Sample/SpaFallback.Sample.csproj b/samples/SpaFallback.Sample/SpaFallback.Sample.csproj index 7a2b3ca..d509c99 100644 --- a/samples/SpaFallback.Sample/SpaFallback.Sample.csproj +++ b/samples/SpaFallback.Sample/SpaFallback.Sample.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 enable enable diff --git a/src/Authentication.JwtBearer.Google/Authentication.JwtBearer.Google.csproj b/src/Authentication.JwtBearer.Google/Authentication.JwtBearer.Google.csproj index b345f3e..d18f7c7 100644 --- a/src/Authentication.JwtBearer.Google/Authentication.JwtBearer.Google.csproj +++ b/src/Authentication.JwtBearer.Google/Authentication.JwtBearer.Google.csproj @@ -1,7 +1,7 @@ - 3.0.0 - netstandard2.0;net8.0 + 3.1.0 + netstandard2.0;net8.0;net9.0 Hellang.Authentication.JwtBearer.Google Hellang.Authentication.JwtBearer.Google JWT Bearer authentication for Google tokens @@ -17,4 +17,10 @@ + + + + + + diff --git a/src/ProblemDetails/ProblemDetails.csproj b/src/ProblemDetails/ProblemDetails.csproj index 1ded11b..10b422f 100644 --- a/src/ProblemDetails/ProblemDetails.csproj +++ b/src/ProblemDetails/ProblemDetails.csproj @@ -1,7 +1,7 @@ - 7.0.0 - net8.0 + 7.1.0 + net8.0;net9.0 Hellang.Middleware.ProblemDetails Hellang.Middleware.ProblemDetails Error handling middleware, using RFC7807 @@ -24,7 +24,12 @@ - + + + + + + diff --git a/src/RateLimiting/RateLimiting.csproj b/src/RateLimiting/RateLimiting.csproj index 943d238..3ddbd7b 100644 --- a/src/RateLimiting/RateLimiting.csproj +++ b/src/RateLimiting/RateLimiting.csproj @@ -1,7 +1,7 @@ - 2.0.0-alpha.1 - netstandard2.0;net8.0 + 2.1.0-alpha.1 + netstandard2.0;net8.0;net9.0 Hellang.Middleware.RateLimiting Hellang.Middleware.RateLimiting Rate-limiting middleware using ASP.NET Core's IDistributedCache. @@ -18,4 +18,9 @@ + + + + + diff --git a/src/SpaFallback/SpaFallback.csproj b/src/SpaFallback/SpaFallback.csproj index 6ab283e..9aa9e97 100644 --- a/src/SpaFallback/SpaFallback.csproj +++ b/src/SpaFallback/SpaFallback.csproj @@ -1,7 +1,7 @@ - 3.0.0 - net8.0 + 3.1.0 + net8.0;net9.0 Hellang.Middleware.SpaFallback Hellang.Middleware.SpaFallback SPA fallback middleware for client-side routing diff --git a/test/Directory.Build.props b/test/Directory.Build.props index 5ca163d..fbc0b17 100644 --- a/test/Directory.Build.props +++ b/test/Directory.Build.props @@ -3,14 +3,14 @@ Exe False 9.0 - net8.0 + net8.0;net9.0 - + @@ -20,4 +20,16 @@ runtime; build; native; contentfiles; analyzers + + + + + + + + all + runtime; build; native; contentfiles; analyzers + + + From 2f0f4d7c192e37bbdd3dd29ed58d1335462c2442 Mon Sep 17 00:00:00 2001 From: Arman Ossi Loko Date: Fri, 15 Nov 2024 06:21:13 +0100 Subject: [PATCH 2/2] Removed NET Core and NET 6 from Github build.yml --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c72aa76..4635e1a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,15 +18,15 @@ jobs: with: submodules: true - - name: Setup .NET Core SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: "3.1.x" + dotnet-version: "8.0.x" - - name: Setup .NET 6 SDK + - name: Setup .NET 9 SDK uses: actions/setup-dotnet@v4 with: - dotnet-version: "6.0.x" + dotnet-version: "9.0.x" - name: Test run: dotnet test --collect:"XPlat Code Coverage"