Nuget - Entity Framework error

Asked

Viewed 137 times

0

I’m starting with C# and I need a force.

I tried to connect to the database using the entity framework.

In the output of the visual studio came the following message:

System.Typeloadexception: Could not load type 'Nuget.Nugetconstants' from Assembly 'Nuget.Visualstudio'.

Therefore, I could not generate the classes.

Someone’s been through it?

  • Try to uninstall Nuget from Entityframework, it will ask to close the Solution and open again, then install again via’s package manager console with the command: Install-package Entityframework

1 answer

0

Try updating the Entity Framework

update-package EntityFramework

If it doesn’t work, uninstall and install again via:

Install-package EntityFramework 

(add -Version xxx if you are installing an older version)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.