EFCore.BulkExtensions icon indicating copy to clipboard operation
EFCore.BulkExtensions copied to clipboard

NET9.0 Dependency

Open JohnYoungers opened this issue 8 months ago • 4 comments

Would it be possible to dual publish v9 as both net9.0 and net8.0? I don't believe any of the dependencies require net9.0 specifically. Right now it' s just net9.0: https://www.nuget.org/packages/EFCore.BulkExtensions.PostgreSql/#dependencies-body-tab

For those of us pinned to the LTS runtimes, it would be nice to use both EFCore v9 and BulkExtensions v9 together (at the moment I'm using v8 of BulkExtensions, and just hoping there's no compatibility issues with EFCore v9)

JohnYoungers avatar Jun 26 '25 17:06 JohnYoungers

we are now in net10.0

blogcraft avatar Nov 11 '25 17:11 blogcraft

@JohnYoungers I want to keep it clean as possible. Also LTS versions remain supported and are published under it's version number. So v8 as LTS is still supported. Not sure what your usecase is, you have project targeting .Net8 in which you have installed .Net9 and installed EFBulk8 ? I guess you suggestion for ShortTerm version is to keep targeting to LTS version of .Net.

For example, next year EFCore11 could remain with .Net10 target !, I will test it when the time come. One potential issue, at leaste one that existed in v8/v9 was that there is shared code at few places:

#if NET8_0_OR_GREATER
        var sortedAdded = added.OrderTopologicallyBy(g => getFks(g.EntityType).SelectMany(x => addedLookup[x]));
#else
        var sortedAdded = added;
#endif

Not sure if this would be a problem.

borisdj avatar Nov 11 '25 22:11 borisdj

Hi, @borisdj

EFCore.BulkExtensions v7 supported both .NET 6 and .NET 7 (multi-targeting) Current v9 targets only .NET 9, not .NET 8 LTS This prevents using EF Core 9 with BulkExtensions on .NET 8 LTS runtime

Question: Could you consider adding .NET 8 target framework to v9 package?

This would allow: Using EF Core 9 features while staying on .NET 8 LTS Maintaining compatibility for enterprises on LTS versions

The .NET 8 and .NET 9 APIs are largely compatible, and EF Core 9 itself supports .NET 8. Would multi-targeting (net8.0;net9.0) be feasible for future releases?

Thank you for considering this request.

alexgorbunov96 avatar Dec 03 '25 15:12 alexgorbunov96

@alexgorbunov96 will take it into a consideration.

borisdj avatar Dec 03 '25 16:12 borisdj