Skip to content

dotnet core + npgsql entity framework core + paket loading issue #231

Description

@rudihorn

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions