-
Notifications
You must be signed in to change notification settings - Fork 70
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").Options
Expected 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
Metadata
Metadata
Assignees
Labels
No labels