Skip to content

Commit c9d37e6

Browse files
AndriySvyrydCopilot
andcommitted
Multi-target Microsoft.EntityFrameworkCore.Tools for net8.0, net9.0, net10.0
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>
1 parent a5607a4 commit c9d37e6

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/EFCore.Tools/EFCore.Tools.nuspec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@
44
<metadata>
55
$CommonMetadataElements$
66
<dependencies>
7-
<group targetFramework="$targetFramework$">
7+
<group targetFramework="net8.0">
88
<dependency id="Microsoft.EntityFrameworkCore.Design" version="8.0.0" />
99
</group>
10+
<group targetFramework="net9.0">
11+
<dependency id="Microsoft.EntityFrameworkCore.Design" version="9.0.0" />
12+
</group>
13+
<group targetFramework="net10.0">
14+
<dependency id="Microsoft.EntityFrameworkCore.Design" version="10.0.0" />
15+
</group>
1016
</dependencies>
1117
<readme>docs\PACKAGE.md</readme>
1218
</metadata>

src/EFCore.Tools/lib/net10.0/_._

Whitespace-only changes.

src/EFCore.Tools/lib/net9.0/_._

Whitespace-only changes.

0 commit comments

Comments
 (0)