From e632124a3372c597f8c7b565b69a6bf7de04fb07 Mon Sep 17 00:00:00 2001 From: Andriy Svyryd Date: Fri, 1 May 2026 13:24:17 -0700 Subject: [PATCH] Multi-target Microsoft.EntityFrameworkCore.Tools for net8.0, net9.0, net10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add per-TFM dependency groups in the nuspec so that the appropriate version of Microsoft.EntityFrameworkCore.Design is resolved based on the consumer's target framework: - net8.0 → Design >= 8.0.0 - net9.0 → Design >= 9.0.0 - net10.0 → Design >= 10.0.0 This prevents MissingMethodException when the Tools package pulls in a Design version incompatible with the user's other EF Core packages. Fixes #38107 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/EFCore.Tools/EFCore.Tools.nuspec | 10 ++++++++-- src/EFCore.Tools/lib/net10.0/_._ | 0 src/EFCore.Tools/lib/net9.0/_._ | 0 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/EFCore.Tools/lib/net10.0/_._ create mode 100644 src/EFCore.Tools/lib/net9.0/_._ diff --git a/src/EFCore.Tools/EFCore.Tools.nuspec b/src/EFCore.Tools/EFCore.Tools.nuspec index 7201a3eff73..a97e90ef228 100644 --- a/src/EFCore.Tools/EFCore.Tools.nuspec +++ b/src/EFCore.Tools/EFCore.Tools.nuspec @@ -4,8 +4,14 @@ $CommonMetadataElements$ - - + + + + + + + + docs\PACKAGE.md diff --git a/src/EFCore.Tools/lib/net10.0/_._ b/src/EFCore.Tools/lib/net10.0/_._ new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/EFCore.Tools/lib/net9.0/_._ b/src/EFCore.Tools/lib/net9.0/_._ new file mode 100644 index 00000000000..e69de29bb2d