Efcore.pg: Issue Upgrading to Dotnet 3.0

Created on 26 Sep 2019  路  3Comments  路  Source: npgsql/efcore.pg

Hi! Thanks for your work on this library. I'm trying to upgrade my project from dotnet core 2.2 to 3.0 but I'm getting the following error:

error NU1605: Detected package downgrade: Microsoft.EntityFrameworkCore from 3.0.0-preview.18572.1 to 2.2.6. Reference the package directly from the project to select a different version.

How can I upgrade my project to 3.0? Is this pending an update? My project has the following dependencies:

<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="3.0.0-preview1" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.Design" Version="2.0.0-preview1" />

All 3 comments

First, please remove Npgsql.EntityFrameworkCore.PostgreSQL.Design - as you can see that package hasn't received an update for several versions because it is no longer needed.

Second, you should be able to get away with referencing Npgsql.EntityFrameworkCore.PostgreSQL 3.0.0-preview9. The actual RTM will probably be out today, so if you can wait a day or two you'll be able to just use 3.0.0.

Thanks @roji ! I think I can wait and I appreciate your response!

FYI 3.0.0 has been released.

Was this page helpful?
0 / 5 - 0 ratings