From 6e75374f287cdb9d59536766ed85981de1548348 Mon Sep 17 00:00:00 2001 From: Muhammad Hamad Date: Fri, 7 Aug 2026 18:24:08 +0500 Subject: [PATCH] Upgrade to .NET 10 Retarget all projects from net8.0 to net10.0 and move dependencies to the 10.0.x band. - global.json: pin the SDK to 10.0.100 (rollForward: latestMinor) - All six projects: net8.0 -> net10.0 - Microsoft.Extensions.* and EntityFrameworkCore.Relational: 8.0.x -> 10.0.10 - Test stack: Test.Sdk 18.8.1, xunit 2.9.3, xunit.runner.visualstudio 3.1.5, coverlet.collector 10.0.1 - Nerdbank.GitVersioning: 3.7.115 -> 3.10.91 for SDK 10 compatibility - CI: actions/setup-dotnet 8.0.x -> 10.0.x Verified with clean Debug and Release builds (0 warnings), 92/92 tests passing in both configurations, dotnet pack producing all three packages, and both example projects running correctly. Note: this drops support for consumers targeting .NET 8 and 9, since the published packages no longer target net8.0. Happy to multi-target net8.0;net10.0 instead if that is preferred. Fixes #17 Co-Authored-By: Claude --- .github/workflows/dotnet.yml | 2 +- Directory.Build.props | 2 +- ExampleApiUsage/ExampleApiUsage.csproj | 4 ++-- ExampleInMemoryQueue/ExampleInMemoryQueue.csproj | 10 +++++----- .../Syncerbell.EntityFrameworkCore.csproj | 4 ++-- .../Syncerbell.HostedService.csproj | 4 ++-- Syncerbell.Tests/Syncerbell.Tests.csproj | 16 ++++++++-------- Syncerbell/Syncerbell.csproj | 6 +++--- global.json | 4 ++-- 9 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index d4cdce8..8ada958 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -21,7 +21,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 10.0.x - name: Restore dependencies run: dotnet restore - name: Build diff --git a/Directory.Build.props b/Directory.Build.props index a36835f..1f007ce 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ all - 3.7.115 + 3.10.91 diff --git a/ExampleApiUsage/ExampleApiUsage.csproj b/ExampleApiUsage/ExampleApiUsage.csproj index 38d7271..c6a10fa 100644 --- a/ExampleApiUsage/ExampleApiUsage.csproj +++ b/ExampleApiUsage/ExampleApiUsage.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net10.0 enable enable false @@ -14,7 +14,7 @@ - + diff --git a/ExampleInMemoryQueue/ExampleInMemoryQueue.csproj b/ExampleInMemoryQueue/ExampleInMemoryQueue.csproj index cae0ef7..4f69a36 100644 --- a/ExampleInMemoryQueue/ExampleInMemoryQueue.csproj +++ b/ExampleInMemoryQueue/ExampleInMemoryQueue.csproj @@ -2,17 +2,17 @@ Exe - net8.0 + net10.0 enable enable false - - - - + + + + diff --git a/Syncerbell.EntityFrameworkCore/Syncerbell.EntityFrameworkCore.csproj b/Syncerbell.EntityFrameworkCore/Syncerbell.EntityFrameworkCore.csproj index 3e287d7..7fc35d7 100644 --- a/Syncerbell.EntityFrameworkCore/Syncerbell.EntityFrameworkCore.csproj +++ b/Syncerbell.EntityFrameworkCore/Syncerbell.EntityFrameworkCore.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 enable enable nullable @@ -17,7 +17,7 @@ - + diff --git a/Syncerbell.HostedService/Syncerbell.HostedService.csproj b/Syncerbell.HostedService/Syncerbell.HostedService.csproj index bd6d0d1..350d08e 100644 --- a/Syncerbell.HostedService/Syncerbell.HostedService.csproj +++ b/Syncerbell.HostedService/Syncerbell.HostedService.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 enable enable nullable @@ -17,7 +17,7 @@ - + diff --git a/Syncerbell.Tests/Syncerbell.Tests.csproj b/Syncerbell.Tests/Syncerbell.Tests.csproj index da58a4a..0a94706 100644 --- a/Syncerbell.Tests/Syncerbell.Tests.csproj +++ b/Syncerbell.Tests/Syncerbell.Tests.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable enable @@ -10,13 +10,13 @@ - - - - - - - + + + + + + + diff --git a/Syncerbell/Syncerbell.csproj b/Syncerbell/Syncerbell.csproj index 52afb3b..01725c4 100644 --- a/Syncerbell/Syncerbell.csproj +++ b/Syncerbell/Syncerbell.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 enable enable nullable @@ -14,8 +14,8 @@ - - + + diff --git a/global.json b/global.json index 2ddda36..6a6aeda 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "8.0.0", + "version": "10.0.100", "rollForward": "latestMinor", "allowPrerelease": false } -} \ No newline at end of file +}