Release version 10
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
Seeing the same issue. It's preventing me from fully migrating to .NET 10 from the RC version
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
I also ran into this when upgrading to .NET 10.
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.
">= 10.0.0-rc.2.25502.107" could help. Its made fixed in the version with "= 10.0.0-rc.2.25502.107"
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?
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" />
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.
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.
Having the same issue.
Does anyone knows when 10.0.0 will be released ? (aprox date)

Does anyone knows when 10.0.0 will be released ? (aprox date)
hopefully next week - https://github.com/npgsql/npgsql/pull/6311#pullrequestreview-3460303573
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.
I'd suggest that in the middle of a GitHub outage might not be the best time for a release 😛
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.
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.
https://github.com/npgsql/efcore.pg/pull/3662
🙏
If RTM were available on NuGet, that would solve the problem, because the dependencies are already at version 10.0.0.