Error with Nuget - Entity Framework

0

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

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

In the visual studio output the following message appeared:

  

System.TypeLoadException: Could not load type 'NuGet.NuGetConstants'   from assembly 'NuGet.VisualStudio'.

So I could not generate the classes.

Has anyone ever been through this?

    
asked by anonymous 23.01.2018 / 01:43

1 answer

0

Try updating the Entity Framework

update-package EntityFramework

If it does not work, please uninstall and reinstall via:

Install-package EntityFramework 

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

    
23.01.2018 / 12:30