-
Notifications
You must be signed in to change notification settings - Fork 70
dotnet core + npgsql entity framework core + paket loading issue #231
Copy link
Copy link
Open
Description
Description
Trying to load Npgsql entity framework on dotnet core over Paket has issues, most likely related to dependencies not being loaded.
Repro steps
#load "Paket.fsx"
Paket.Package ["Microsoft.EntityFrameworkCore"; "Npgsql"; "Npgsql.EntityFrameworkCore.PostgreSQL"]
#load ".paket/load/netstandard2.0/Npgsql.EntityFrameworkCore.PostgreSQL.fsx"
open Npgsql.EntityFrameworkCore.PostgreSQL
open Microsoft.EntityFrameworkCore
let opt = DbContextOptionsBuilder().UseNpgsql("connectionstring").OptionsExpected behavior
It should generate a DbContextOptions.
Actual behavior
type 'Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlDbContextOptionsBuilder' not found in assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=2.2.4.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7'. A possible cause may be a version incompatibility. You may need to explicitly reference the correct version of this assembly to allow all referenced components to use the correct version.
Known workarounds
I sadly could not find one. I've tried loading random further libraries, but with no success.
Related information
- Operating system: Ubuntu
- Branch: Master
- CoreCLR
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels