From bf1443e016ec94c3fc8201eab9f5cfda40244f09 Mon Sep 17 00:00:00 2001 From: DevTKSS Date: Wed, 19 Nov 2025 13:40:13 +0100 Subject: [PATCH 1/4] feat: add net10.0 target to projects (multi-targeting) --- .../Yllibed.HttpServer.Json.Tests.csproj | 3 ++- Yllibed.HttpServer.Json/Yllibed.HttpServer.Json.csproj | 1 + Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj | 3 ++- Yllibed.HttpServer/Yllibed.HttpServer.csproj | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Yllibed.HttpServer.Json.Tests/Yllibed.HttpServer.Json.Tests.csproj b/Yllibed.HttpServer.Json.Tests/Yllibed.HttpServer.Json.Tests.csproj index 0d45916..7012668 100644 --- a/Yllibed.HttpServer.Json.Tests/Yllibed.HttpServer.Json.Tests.csproj +++ b/Yllibed.HttpServer.Json.Tests/Yllibed.HttpServer.Json.Tests.csproj @@ -1,8 +1,9 @@  - net9.0 + net9.0;net10.0 true enable + NU1510 diff --git a/Yllibed.HttpServer.Json/Yllibed.HttpServer.Json.csproj b/Yllibed.HttpServer.Json/Yllibed.HttpServer.Json.csproj index 19a8bd1..883571f 100644 --- a/Yllibed.HttpServer.Json/Yllibed.HttpServer.Json.csproj +++ b/Yllibed.HttpServer.Json/Yllibed.HttpServer.Json.csproj @@ -1,5 +1,6 @@  + net8.0;net9.0;net10.0 Yllibed.HttpServer.Json Yllibed HttpServer Json Adapter Yllibed HttpServer Json Adapter diff --git a/Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj b/Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj index e18dcf8..fb56b40 100644 --- a/Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj +++ b/Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj @@ -1,7 +1,8 @@  - net9.0 + net9.0;net10.0 enable + NU1510 diff --git a/Yllibed.HttpServer/Yllibed.HttpServer.csproj b/Yllibed.HttpServer/Yllibed.HttpServer.csproj index dd47f20..6d1e19c 100644 --- a/Yllibed.HttpServer/Yllibed.HttpServer.csproj +++ b/Yllibed.HttpServer/Yllibed.HttpServer.csproj @@ -1,5 +1,6 @@  + netstandard2.0;net8.0;net9.0;net10.0 Yllibed.HttpServer Yllibed HttpServer Yllibed HttpServer @@ -10,6 +11,7 @@ README.md $(InternalsVisibleTo);Yllibed.HttpServer.Json;Yllibed.HttpServer.Tests + NU1510 @@ -23,4 +25,5 @@ + From c69bbc00184383107dc9a7e5c8688014abe45135 Mon Sep 17 00:00:00 2001 From: DevTKSS Date: Wed, 19 Nov 2025 13:55:57 +0100 Subject: [PATCH 2/4] fix: make NU1510 suppression conditional (exclude net10.0) and conditionally include platform packages --- .../Yllibed.HttpServer.Json.Tests.csproj | 9 +++++++-- .../Yllibed.HttpServer.Tests.csproj | 10 ++++++++-- Yllibed.HttpServer/Yllibed.HttpServer.csproj | 3 +++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Yllibed.HttpServer.Json.Tests/Yllibed.HttpServer.Json.Tests.csproj b/Yllibed.HttpServer.Json.Tests/Yllibed.HttpServer.Json.Tests.csproj index 7012668..b4b1627 100644 --- a/Yllibed.HttpServer.Json.Tests/Yllibed.HttpServer.Json.Tests.csproj +++ b/Yllibed.HttpServer.Json.Tests/Yllibed.HttpServer.Json.Tests.csproj @@ -3,6 +3,9 @@ net9.0;net10.0 true enable + + + NU1510 @@ -17,15 +20,17 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + + + + - diff --git a/Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj b/Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj index fb56b40..acf550a 100644 --- a/Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj +++ b/Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj @@ -2,6 +2,9 @@ net9.0;net10.0 enable + + + NU1510 @@ -9,6 +12,11 @@ + + + + + @@ -19,8 +27,6 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Yllibed.HttpServer/Yllibed.HttpServer.csproj b/Yllibed.HttpServer/Yllibed.HttpServer.csproj index 6d1e19c..e34d93e 100644 --- a/Yllibed.HttpServer/Yllibed.HttpServer.csproj +++ b/Yllibed.HttpServer/Yllibed.HttpServer.csproj @@ -11,6 +11,9 @@ README.md $(InternalsVisibleTo);Yllibed.HttpServer.Json;Yllibed.HttpServer.Tests + + + NU1510 From 24c9b9db6a9b6d4e19cca84ce01f865c23c2348f Mon Sep 17 00:00:00 2001 From: DevTKSS Date: Wed, 19 Nov 2025 15:05:43 +0100 Subject: [PATCH 3/4] chore(deps): NU1510 remove Packages in Project files if not required for given Target Frameworks - Removed System.ValueTuple from Solution - Removed System.Diagnostics.DiagnosticSource only from Projects (tests), which don't even target legacy netstandard2.0 - build passed - Test Passes, but netstandard 2.0 seems to have no test coverage, alternative Validation options? --- Directory.Packages.props | 1 - .../Yllibed.HttpServer.Json.Tests.csproj | 9 --------- Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj | 9 --------- Yllibed.HttpServer/Yllibed.HttpServer.csproj | 6 ------ 4 files changed, 25 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 19923cb..b774a97 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -13,6 +13,5 @@ - \ No newline at end of file diff --git a/Yllibed.HttpServer.Json.Tests/Yllibed.HttpServer.Json.Tests.csproj b/Yllibed.HttpServer.Json.Tests/Yllibed.HttpServer.Json.Tests.csproj index b4b1627..55c36d9 100644 --- a/Yllibed.HttpServer.Json.Tests/Yllibed.HttpServer.Json.Tests.csproj +++ b/Yllibed.HttpServer.Json.Tests/Yllibed.HttpServer.Json.Tests.csproj @@ -5,10 +5,6 @@ enable - - NU1510 - - @@ -20,14 +16,9 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - diff --git a/Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj b/Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj index acf550a..a5dfc2f 100644 --- a/Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj +++ b/Yllibed.HttpServer.Tests/Yllibed.HttpServer.Tests.csproj @@ -4,19 +4,10 @@ enable - - NU1510 - - - - - - - diff --git a/Yllibed.HttpServer/Yllibed.HttpServer.csproj b/Yllibed.HttpServer/Yllibed.HttpServer.csproj index e34d93e..e610fde 100644 --- a/Yllibed.HttpServer/Yllibed.HttpServer.csproj +++ b/Yllibed.HttpServer/Yllibed.HttpServer.csproj @@ -13,10 +13,6 @@ $(InternalsVisibleTo);Yllibed.HttpServer.Json;Yllibed.HttpServer.Tests - - NU1510 - - @@ -26,7 +22,5 @@ - - From baf3465e46dd19e9064329a10e2a560360df1593 Mon Sep 17 00:00:00 2001 From: DevTKSS Date: Wed, 19 Nov 2025 15:08:59 +0100 Subject: [PATCH 4/4] ci(net10): Add .NET 10.0 Setup step --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 648ea8f..095c83e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,11 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: '9.0' + + - name: Setup .NET 10.0 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '10.0' - name: Build run: dotnet build Yllibed.HttpServer.slnx /p:Configuration=Release