Update EF Core SQLite packages to support 10.0.2#1105
Conversation
Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
| <AspirePreviewSuffix>-preview.1.25616.3</AspirePreviewSuffix> | ||
| <AspNetCoreVersion>9.0.0</AspNetCoreVersion> | ||
| <DotNetExtensionsVersion>10.0.1</DotNetExtensionsVersion> | ||
| <DotNetExtensionsVersion>10.0.2</DotNetExtensionsVersion> |
There was a problem hiding this comment.
@copilot I think we can revert this back as we want to only focus on EF
There was a problem hiding this comment.
Reverted DotNetExtensionsVersion back to 10.0.1. Added version overrides for Microsoft.Extensions.Diagnostics.HealthChecks and Microsoft.Extensions.Hosting.Abstractions in the EF Core project to ensure compatibility with EF Core 10.0.2 while keeping the focus on EF Core packages only. (4c20a93)
There was a problem hiding this comment.
Pull request overview
This PR updates EF Core SQLite packages to version 10.0.2 and implements a multi-targeting strategy to maintain compatibility across .NET 8.0, 9.0, and 10.0. The changes address runtime MissingMethodException errors that occur when using EF Core 10.0.2 with the existing SQLite integration due to breaking changes in EF Core 10.x.
Changes:
- Updated central package versions to EF Core 10.0.2 and related packages
- Implemented conditional version overrides for each target framework (net8.0 → EF 8.0.23, net9.0 → EF 9.0.9, net10.0 → EF 10.0.2)
- Applied multi-targeting strategy to both
CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.SqliteandCommunityToolkit.Aspire.Microsoft.Data.Sqliteprojects
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| Directory.Packages.props | Updated central package versions for EF Core, SQLite, and related packages from 9.0.9 to 10.0.2; updated DotNetExtensionsVersion from 10.0.1 to 10.0.2 |
| Directory.Build.props | Updated DotNetExtensionsVersion from 10.0.1 to 10.0.2 for consistency |
| CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite.csproj | Implemented conditional ItemGroups with VersionOverride to provide framework-specific EF Core package versions |
| CommunityToolkit.Aspire.Microsoft.Data.Sqlite.csproj | Implemented conditional ItemGroups with VersionOverride to provide framework-specific SQLite package versions |
… for EF Core 10 Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
… groups Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
Minimum allowed line rate is |
EF Core 10.0.2 introduced breaking changes causing
MissingMethodExceptionat runtime when used with the SQLite integration. EF Core 10.x only supports .NET 10.0, incompatible with the package's multi-targeting strategy.Changes
Central package version updates:
Microsoft.EntityFrameworkCore.Design: 9.0.9 → 10.0.2Microsoft.EntityFrameworkCore.Sqlite: 9.0.9 → 10.0.2Microsoft.Data.Sqlite: 9.0.9 → 10.0.2Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore: 8.0.20 → 10.0.2Multi-targeting support via conditional version overrides:
Applied to both
CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.SqliteandCommunityToolkit.Aspire.Microsoft.Data.Sqliteprojects usingVersionOverridein conditionalItemGroupelements per target framework.Scope focused on EF Core packages only:
DotNetExtensionsVersionremains at 10.0.1Microsoft.Extensions.Diagnostics.HealthChecksandMicrosoft.Extensions.Hosting.Abstractions) for .NET 10.0 use explicit version overrides to 10.0.2 to satisfy EF Core 10.0.2 requirementsOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.