efcore.pg icon indicating copy to clipboard operation
efcore.pg copied to clipboard

Release version 10

Open satyajit-behera opened this issue 1 year ago • 31 comments

Hi,

The rc2 release has a tight binding with the reference of rc -2 release of efcore 10. And hence not letting it getting installed with efcore 10.

Can this be resolved in the nuget, as it will restrict existing applications from upgrading to efcore 10.

Thanks

satyajit-behera avatar Nov 12 '25 15:11 satyajit-behera

Seeing the same issue. It's preventing me from fully migrating to .NET 10 from the RC version

Atulin avatar Nov 12 '25 19:11 Atulin

yes this is due to the hard rc2 constraint on EF Core: https://www.nuget.org/packages/Npgsql.EntityFrameworkCore.PostgreSQL/10.0.0-rc.2#dependencies-body-tab

this seems related: https://github.com/npgsql/efcore.pg/issues/3652

vip32 avatar Nov 12 '25 21:11 vip32

I also ran into this when upgrading to .NET 10.

patricksheedy avatar Nov 13 '25 02:11 patricksheedy

If anyone was wondering, you can run the RC2 with .NET 10 EF, it'll complain about versioning (which you can ignore) but from my tests, it's pretty compatible.

Just set the version manually in your CSPROJ or Directory.Packages.props <PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0-rc.2" />

Probably not a good idea for production but should hold you over till it gets updated.

jusvit avatar Nov 13 '25 04:11 jusvit

">= 10.0.0-rc.2.25502.107" could help. Its made fixed in the version with "= 10.0.0-rc.2.25502.107"

satyajit-behera avatar Nov 13 '25 05:11 satyajit-behera

If anyone was wondering, you can run the RC2 with .NET 10 EF, it'll complain about versioning (which you can ignore) but from my tests, it's pretty compatible.

Just set the version manually in your CSPROJ or Directory.Packages.props <PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0-rc.2" />

Probably not a good idea for production but should hold you over till it gets updated.

not working. Npgsql.EntityFrameworkCore.PostgreSQL 10.0.0-rc.2 -> Microsoft.EntityFrameworkCore (= 10.0.0-rc.2.25502.107).

My project also has EF Core SqlServer, so there has conflict!

@roji Do you know what is causing the inability to release the .NET 10 package? Or when can we get the latest package?

niltor avatar Nov 13 '25 06:11 niltor

Using the RC works for me with these package references:

    <PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="10.0.0" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.0" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="10.0.0" />
    <PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.0" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.0" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.0">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="10.0.0" />
    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="10.0.0-rc.1.25458.5" />
    <PackageReference Include="Npgsql" Version="10.0.0-rc.1" />
    <PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0-rc.2" />
    <PackageReference Include="OpenIddict.AspNetCore" Version="7.2.0" />
    <PackageReference Include="OpenIddict.EntityFrameworkCore" Version="7.2.0" />
    <PackageReference Include="OpenIddict.Quartz" Version="7.2.0" />
    <PackageReference Include="Quartz.Extensions.Hosting" Version="3.15.1" />

rjhind avatar Nov 13 '25 09:11 rjhind

For now you can use these package versions to temporarily fix .Net 10 conflicts. This allowed me to move forward and successfully migrate from .Net 9 to .Net 10:

Use:

<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0-rc.2" />

With these dependencies:

<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="10.0.0-rc.2.25502.107" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Relational" Version="10.0.0-rc.2.25502.107" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.0-rc.2.25502.107" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.0-rc.2.25502.107" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Abstractions" Version="10.0.0-rc.2.25502.107" />

All other non-EFCore dependencies of your .Net 10 project can safely depend on proper .Net 10 supported versions.

alper-guven avatar Nov 13 '25 10:11 alper-guven

At best I think this can only be considered a hack. Although, technically, there's probably no significant difference between 10.0.0 RC2 and 10.0.0 RTM. But I'd personally not release anything to production until NPGSQL supported .NET 10 RTM.

ThomasDue avatar Nov 13 '25 12:11 ThomasDue

Having the same issue.

Bram1903 avatar Nov 14 '25 08:11 Bram1903

Does anyone knows when 10.0.0 will be released ? (aprox date)

fhenriquezn avatar Nov 14 '25 17:11 fhenriquezn

Atulin avatar Nov 14 '25 17:11 Atulin

Does anyone knows when 10.0.0 will be released ? (aprox date)

hopefully next week - https://github.com/npgsql/npgsql/pull/6311#pullrequestreview-3460303573

sulgpallur avatar Nov 15 '25 06:11 sulgpallur

Using EFCore.PG rc.2 with EF 10 GA won't work - this is very much by design. You'll have to wait until EFCore.PG 10 is released (probably in the next few days). I'll keep this issue open and will post here once that happens.

roji avatar Nov 16 '25 11:11 roji

Image

0xF6 avatar Nov 18 '25 20:11 0xF6

I'd suggest that in the middle of a GitHub outage might not be the best time for a release 😛

lol768 avatar Nov 18 '25 21:11 lol768

There is a pull request titled "Bump dependencies to EF 10.0.0" (#3659 – merged). The GitHub Actions run here does not include the publish-ci or release steps. I think the release is not far away, because @roji has already done some work to prepare for version 10.0.0.

JoFo-IT avatar Nov 18 '25 21:11 JoFo-IT

The preview packages has always been at https://www.myget.org/feed/npgsql-vnext/package/nuget/Npgsql.EntityFrameworkCore.PostgreSQL if one cannot wait.

The latest one does not depend on RC of 10 but RTM.

regisbsb avatar Nov 19 '25 16:11 regisbsb

https://github.com/npgsql/efcore.pg/pull/3662

🙏

dayvejones avatar Nov 20 '25 09:11 dayvejones

If RTM were available on NuGet, that would solve the problem, because the dependencies are already at version 10.0.0.

lucasazevedodev avatar Nov 21 '25 12:11 lucasazevedodev