From 32181febb1a599ac5cd8d7a3d2472efb78799f4f Mon Sep 17 00:00:00 2001 From: Ben McCallum Date: Tue, 23 Jun 2026 15:41:29 +1000 Subject: [PATCH] feat: v5 line targeting .NET 10 / EF Core 10 Establishes the v5 line of the AutoGuru fork, matching the version->EF-Core convention (v3 = EF Core 6, v4 = EF Core 9, v5 = EF Core 10): - EFCorePackageVersion / MicrosoftExtensionsVersion 9.0.3 -> 10.0.9 - src TargetFramework net9.0 -> net10.0 (the packed AutoGuru.* libraries) - test + benchmark + sample projects net9.0 -> net10.0 - global.json SDK 9.0.200 -> 10.0.301 - samples baseline EFCoreTriggeredPackageVersion 3.0.0 -> 5.0.0 - prerelease pack version prefix 3-pre- -> 5-pre- in build.yml - README: .NET 9 / EF Core 9 -> .NET 10 / EF Core 10 Suppress NU1903-as-error in the Tests project only: EF Core 10's Sqlite provider pulls SQLitePCLRaw.lib.e_sqlite3 2.1.11 (latest stable) which carries a high-severity advisory. Test-only, never packaged, so scoped rather than relaxing TreatWarningsAsErrors repo-wide. Build + 229 tests pass on the .NET 10 SDK; all 5 AutoGuru.* packages pack as 5.0.0 / net10.0. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/build.yml | 2 +- Directory.Build.props | 4 ++-- README.md | 4 ++-- .../EntityFrameworkCore.Triggered.Benchmarks.csproj | 2 +- global.json | 2 +- samples/1 - HelloWorld/1 - HelloWorld.csproj | 2 +- samples/2 - PrimarySchool/2 - PrimarySchool.csproj | 2 +- .../3 - StudentManagerAspNetCore.csproj | 2 +- samples/4 - BlazorTests/4 - BlazorTests.csproj | 2 +- samples/Directory.Build.props | 4 ++-- src/Directory.Build.props | 2 +- .../EntityFrameworkCore.Triggered.Extensions.Tests.csproj | 2 +- .../EntityFrameworkCore.Triggered.IntegrationTests.csproj | 2 +- .../EntityFrameworkCore.Triggered.Tests.csproj | 7 ++++++- ...EntityFrameworkCore.Triggered.Transactions.Tests.csproj | 2 +- 15 files changed, 23 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 271ace2..7cb6542 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: - name: Pack if: matrix.os == 'ubuntu-latest' run: | - dotnet pack -v normal --configuration Release --include-symbols --include-source -p:PackageVersion=3-pre-$GITHUB_RUN_ID -o nupkg EntityFrameworkCore.Triggered.Core.slnf + dotnet pack -v normal --configuration Release --include-symbols --include-source -p:PackageVersion=5-pre-$GITHUB_RUN_ID -o nupkg EntityFrameworkCore.Triggered.Core.slnf - name: Upload Artifact if: matrix.os == 'ubuntu-latest' uses: actions/upload-artifact@v4 diff --git a/Directory.Build.props b/Directory.Build.props index d446353..7d68296 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -18,8 +18,8 @@ - 9.0.3 - 9.0.3 + 10.0.9 + 10.0.9 \ No newline at end of file diff --git a/README.md b/README.md index ffbf45c..7c6c1c0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # EntityFrameworkCore.Triggered Triggers for EF Core. Respond to changes in your DbContext before and after they are committed to the database. -This is the [AutoGuru](https://github.com/autoguru-au)-maintained fork, targeting .NET 9 / EF Core 9. Published as `AutoGuru.*` NuGet packages. +This is the [AutoGuru](https://github.com/autoguru-au)-maintained fork, targeting .NET 10 / EF Core 10. Published as `AutoGuru.*` NuGet packages. [![NuGet version (AutoGuru.EntityFrameworkCore.Triggered)](https://img.shields.io/nuget/v/AutoGuru.EntityFrameworkCore.Triggered.svg?style=flat-square)](https://www.nuget.org/packages/AutoGuru.EntityFrameworkCore.Triggered/) [![Build status](https://github.com/autoguru-au/EntityFrameworkCore.Triggered/workflows/Build/badge.svg)](https://github.com/autoguru-au/EntityFrameworkCore.Triggered/actions?query=workflow%3ABuild) @@ -20,7 +20,7 @@ This is the [AutoGuru](https://github.com/autoguru-au)-maintained fork, targetin 4. View our [samples](https://github.com/autoguru-au/EntityFrameworkCore.Triggered/tree/main/samples) 5. Check out our [wiki](https://github.com/autoguru-au/EntityFrameworkCore.Triggered/wiki) for tips and tricks on getting started and being successful. -> This fork targets .NET 9 / EF Core 9. Triggers are invoked automatically via EF Core's `ISaveChangesInterceptor`. +> This fork targets .NET 10 / EF Core 10. Triggers are invoked automatically via EF Core's `ISaveChangesInterceptor`. ### Example ```csharp diff --git a/benchmarks/EntityFrameworkCore.Triggered.Benchmarks/EntityFrameworkCore.Triggered.Benchmarks.csproj b/benchmarks/EntityFrameworkCore.Triggered.Benchmarks/EntityFrameworkCore.Triggered.Benchmarks.csproj index 3e07ac9..9d6a6dc 100644 --- a/benchmarks/EntityFrameworkCore.Triggered.Benchmarks/EntityFrameworkCore.Triggered.Benchmarks.csproj +++ b/benchmarks/EntityFrameworkCore.Triggered.Benchmarks/EntityFrameworkCore.Triggered.Benchmarks.csproj @@ -1,6 +1,6 @@ - net9.0 + net10.0 Exe disable diff --git a/global.json b/global.json index a02bac5..f365c8c 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "9.0.200", + "version": "10.0.301", "rollForward": "latestFeature" } } diff --git a/samples/1 - HelloWorld/1 - HelloWorld.csproj b/samples/1 - HelloWorld/1 - HelloWorld.csproj index 8101df2..d9a6611 100644 --- a/samples/1 - HelloWorld/1 - HelloWorld.csproj +++ b/samples/1 - HelloWorld/1 - HelloWorld.csproj @@ -2,7 +2,7 @@ Exe - net9.0 + net10.0 HelloWorld disable diff --git a/samples/2 - PrimarySchool/2 - PrimarySchool.csproj b/samples/2 - PrimarySchool/2 - PrimarySchool.csproj index bef0f92..fad9168 100644 --- a/samples/2 - PrimarySchool/2 - PrimarySchool.csproj +++ b/samples/2 - PrimarySchool/2 - PrimarySchool.csproj @@ -2,7 +2,7 @@ Exe - net9.0 + net10.0 PrimarySchool disable diff --git a/samples/3 - StudentManagerAspNetCore/3 - StudentManagerAspNetCore.csproj b/samples/3 - StudentManagerAspNetCore/3 - StudentManagerAspNetCore.csproj index d18b401..6ec3873 100644 --- a/samples/3 - StudentManagerAspNetCore/3 - StudentManagerAspNetCore.csproj +++ b/samples/3 - StudentManagerAspNetCore/3 - StudentManagerAspNetCore.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 StudentManager disable diff --git a/samples/4 - BlazorTests/4 - BlazorTests.csproj b/samples/4 - BlazorTests/4 - BlazorTests.csproj index 96efb11..f0ac840 100644 --- a/samples/4 - BlazorTests/4 - BlazorTests.csproj +++ b/samples/4 - BlazorTests/4 - BlazorTests.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 BlazorTests disable diff --git a/samples/Directory.Build.props b/samples/Directory.Build.props index 6ce5209..570d1a4 100644 --- a/samples/Directory.Build.props +++ b/samples/Directory.Build.props @@ -1,6 +1,6 @@ - 9.0.3 - 3.0.0 + 10.0.9 + 5.0.0 \ No newline at end of file diff --git a/src/Directory.Build.props b/src/Directory.Build.props index af222c4..b497f30 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -2,7 +2,7 @@ - net9.0 + net10.0 diff --git a/test/EntityFrameworkCore.Triggered.Extensions.Tests/EntityFrameworkCore.Triggered.Extensions.Tests.csproj b/test/EntityFrameworkCore.Triggered.Extensions.Tests/EntityFrameworkCore.Triggered.Extensions.Tests.csproj index 3edcb08..070211b 100644 --- a/test/EntityFrameworkCore.Triggered.Extensions.Tests/EntityFrameworkCore.Triggered.Extensions.Tests.csproj +++ b/test/EntityFrameworkCore.Triggered.Extensions.Tests/EntityFrameworkCore.Triggered.Extensions.Tests.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 false disable diff --git a/test/EntityFrameworkCore.Triggered.IntegrationTests/EntityFrameworkCore.Triggered.IntegrationTests.csproj b/test/EntityFrameworkCore.Triggered.IntegrationTests/EntityFrameworkCore.Triggered.IntegrationTests.csproj index 9cb4b06..48380b6 100644 --- a/test/EntityFrameworkCore.Triggered.IntegrationTests/EntityFrameworkCore.Triggered.IntegrationTests.csproj +++ b/test/EntityFrameworkCore.Triggered.IntegrationTests/EntityFrameworkCore.Triggered.IntegrationTests.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 false disable diff --git a/test/EntityFrameworkCore.Triggered.Tests/EntityFrameworkCore.Triggered.Tests.csproj b/test/EntityFrameworkCore.Triggered.Tests/EntityFrameworkCore.Triggered.Tests.csproj index ab7fe05..773587c 100644 --- a/test/EntityFrameworkCore.Triggered.Tests/EntityFrameworkCore.Triggered.Tests.csproj +++ b/test/EntityFrameworkCore.Triggered.Tests/EntityFrameworkCore.Triggered.Tests.csproj @@ -1,9 +1,14 @@ - net9.0 + net10.0 false disable + + $(NoWarn);NU1903 diff --git a/test/EntityFrameworkCore.Triggered.Transactions.Tests/EntityFrameworkCore.Triggered.Transactions.Tests.csproj b/test/EntityFrameworkCore.Triggered.Transactions.Tests/EntityFrameworkCore.Triggered.Transactions.Tests.csproj index b3bddab..1908af1 100644 --- a/test/EntityFrameworkCore.Triggered.Transactions.Tests/EntityFrameworkCore.Triggered.Transactions.Tests.csproj +++ b/test/EntityFrameworkCore.Triggered.Transactions.Tests/EntityFrameworkCore.Triggered.Transactions.Tests.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 false disable