Skip to content

Upgrade to .NET 10 and EF Core 10.0.0#251

Open
benjiro wants to merge 1 commit intoTrackableEntities:masterfrom
benjiro:feature/upgrade-to-dotnet10-efcore10
Open

Upgrade to .NET 10 and EF Core 10.0.0#251
benjiro wants to merge 1 commit intoTrackableEntities:masterfrom
benjiro:feature/upgrade-to-dotnet10-efcore10

Conversation

@benjiro
Copy link

@benjiro benjiro commented Mar 11, 2026

Summary

This PR upgrades the library and all sample/test projects to .NET 10 and pins EF Core to 10.0.0.

  • Bumps all TargetFramework values from net8.0net10.0 (TemplatesAssembly remains on netstandard2.1)
  • Pins Microsoft.EntityFrameworkCore.Design and Microsoft.EntityFrameworkCore.Relational/SqlServer to 10.0.0
  • Updates Handlebars.Net to 2.1.6 and JetBrains.Annotations to 2025.2.4
  • Updates Microsoft.AspNetCore.OpenApi and Microsoft.VisualStudio.Web.CodeGeneration.Design to 10.0.0
  • Bumps package version to 10.0.0 (assembly and file versions updated accordingly)
  • Updates CodeTemplates NuGet package path from lib/net8.0lib/net10.0
  • Updates README prerequisites, upgrade steps, and code samples to reference .NET 10

Resolves #249 #250

Breaking Change Fix

AbstractionsStrings.CollectionArgumentIsEmpty and AbstractionsStrings.ArgumentIsEmpty changed from callable methods to properties in EF Core 10. The calls in Internal/Check.cs have been replaced with equivalent inline interpolated string messages.

EF Core Scaffolding Template Compatibility

The EF Core scaffolding generators (CSharpDbContextGenerator and CSharpEntityTypeGenerator) are unchanged between v9 and v10 — confirmed by diffing the source files on GitHub. All Handlebars templates (.hbs files) and the template data model are fully compatible with EF Core 10 with no modifications required.

Test Plan

  • dotnet build succeeds with 0 errors (3 pre-existing connection string warnings in sample projects)
  • dotnet test — succeeds

- Bump all project TargetFrameworks from net8.0 to net10.0
- Pin Microsoft.EntityFrameworkCore.* packages to 10.0.0
- Update Handlebars.Net to 2.1.6 and JetBrains.Annotations to 2025.2.4
- Update Microsoft.AspNetCore.OpenApi and Web.CodeGeneration.Design to 10.0.0
- Bump package version to 10.0.0 (assembly/file versions updated accordingly)
- Fix Check.cs: AbstractionsStrings.CollectionArgumentIsEmpty and
  ArgumentIsEmpty changed from methods to properties in EF Core 10;
  replaced with inline interpolated string messages
- Update README prerequisites, upgrading steps, and code samples to reflect .NET 10
- Update CodeTemplates PackagePath from lib/net8.0 to lib/net10.0
- TemplatesAssembly remains on netstandard2.1

Signed-off-by: Benjamin Evenson <2031163+benjiro@users.noreply.github.com>
@benjiro benjiro force-pushed the feature/upgrade-to-dotnet10-efcore10 branch from 4eb0bb3 to 339aa00 Compare March 11, 2026 11:52
@benjiro
Copy link
Author

benjiro commented Mar 11, 2026

@tonysneed When you get a moment can you review this PR 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Update to .NET 10

1 participant