From d899aa1b90f8e4ba5abb9e0961d75be6c201319c Mon Sep 17 00:00:00 2001 From: Andy Benson Date: Thu, 12 Dec 2024 11:16:22 +0000 Subject: [PATCH] Add .net8 & .net9 targets. Update IPAddressRange to 6.1.0 (fixes known vulnerability) --- .github/workflows/dotnetcore.yml | 8 +++++++ src/Directory.Build.props | 12 +++++----- .../ZNetCS.AspNetCore.IPFiltering.csproj | 16 +++++++++---- .../ZNetCS.AspNetCore.IPFilteringTest.csproj | 23 +++++++++++++------ 4 files changed, 42 insertions(+), 17 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 1ac9951..657ea0e 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -27,6 +27,14 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.x' + - name: Setup .NET 8.0 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + - name: Setup .NET 9.0 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '9.0.x' - name: Checkout uses: actions/checkout@v3 - name: Build diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 4aa4f31..55acb42 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,9 +1,9 @@ - 7.0.0 - Fix issue for .NET 7.0.1 and 7.0.2 + 9.0.0 + Implement .NET 8 and 9 - + ZNetCS.AspNetCore.IPFiltering ZNetCS.AspNetCore.IPFiltering @@ -24,12 +24,12 @@ https://github.com/msmolka/ZNetCS.AspNetCore.IPFiltering true - + true ..\StrongNameKey.snk - + true enable @@ -44,7 +44,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/ZNetCS.AspNetCore.IPFiltering/ZNetCS.AspNetCore.IPFiltering.csproj b/src/ZNetCS.AspNetCore.IPFiltering/ZNetCS.AspNetCore.IPFiltering.csproj index 506fdaf..73f9a6c 100644 --- a/src/ZNetCS.AspNetCore.IPFiltering/ZNetCS.AspNetCore.IPFiltering.csproj +++ b/src/ZNetCS.AspNetCore.IPFiltering/ZNetCS.AspNetCore.IPFiltering.csproj @@ -2,19 +2,27 @@ ZNetCS.AspNetCore.IPFiltering - netcoreapp3.1;net6.0;net7.0 + netcoreapp3.1;net6.0;net7.0;net8.0;net9.0 - + - + - + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + \ No newline at end of file diff --git a/test/ZNetCS.AspNetCore.IPFilteringTest/ZNetCS.AspNetCore.IPFilteringTest.csproj b/test/ZNetCS.AspNetCore.IPFilteringTest/ZNetCS.AspNetCore.IPFilteringTest.csproj index 66bc858..737d47b 100644 --- a/test/ZNetCS.AspNetCore.IPFilteringTest/ZNetCS.AspNetCore.IPFilteringTest.csproj +++ b/test/ZNetCS.AspNetCore.IPFilteringTest/ZNetCS.AspNetCore.IPFilteringTest.csproj @@ -2,7 +2,7 @@ Marcin Smółka - netcoreapp3.1;net6.0;net7.0 + netcoreapp3.1;net6.0;net7.0;net8.0;net9.0 false latest enable @@ -14,14 +14,15 @@ - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -41,7 +42,15 @@ - + + + + + + + + +