SamuraiJack
SamuraiJack

Reputation: 5539

Unable to install PostgreSQL entity framework nuget package for .Net 4.5?

I am getting :

Could not install package 'Npgsql.EntityFrameworkCore.PostgreSQL 2.0.1'. You are trying to install this package into a project that targets 
'.NETFramework,Version=v4.5.1', but the package does not contain any assembly 
references or content files that are compatible with that framework.

What am I missing?

enter image description here

Upvotes: 0

Views: 3649

Answers (1)

Shay Rojansky
Shay Rojansky

Reputation: 16692

If you're looking for Entity Framework Core, then version 2.0.x is only supported for .NET Standard 2.0, which is supported by .NET Framework 4.6.1 and above (or .NET Core).

If you're looking for Entity Framework 6.x, use the package EntityFramework6.Npgsql as suggested above.

Upvotes: 1

Related Questions