Skip to content

Unable to find design-time provider assembly. #914

Closed

Description

@h3x4d3c1m4l

Hi all,

I'm trying to use the new EF7 connector, with database first approach. The database is already set up, but creating the entities out of the database gives me a headache.

I use the following command in the 'Package Manager Console':

Scaffold-DbContext -provider EntityFramework7.Npgsql -connection "Port=5432;Server=127.0.0.1;Database=x;UserId=x;Password=x;"

It keeps telling me this:
Unable to find design-time provider assembly. Please install the EntityFramework7.Npgsql.Design NuGet package and ensure that the package is referenced by the project.

Anyone having the same problem that found a fix?

As this printscreen shows, I do reference EntityFramework7.Npgsql.Design.
error1

Activity

  1. roji commented on Dec 26, 2015

    @roji
    Member

    I've seen this on my machine too, although everything worked well at some point. I promise to take a look in the next few days.

  2. roji commented on Dec 27, 2015

    @roji
    Member

    @adopilot, @eBerdnA, @sander-ashwin, I looked into this and easily reproduced the problem using a traditional .csproj project, but not with the new DNX/project.json build which worked fine.

    Digging in, I found that EF7.Npgsql.Design 3.1.0-rc1-4 had a badly signed assembly. I just published 3.1.0-rc1-5 which is correctly signed and managed to scaffold a database.

    Can you guys all retry and let me know? Note that you can pass the -Verbose switch to Powershell Scaffold-DbContext to get more info, including stack traces, which would help debug things.

  3. self-assigned this
    on Dec 27, 2015
  4. h3x4d3c1m4l commented on Dec 27, 2015

    @h3x4d3c1m4l
    Author

    Awesome! It now works correctly.

    Thank you very much for the quick fix :) guess this one can be closed.

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

Metadata

Metadata

Assignees

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