Nuget Error - Entity Framework



  • I'm starting with C# and I need a strength.

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

    In the output of visual studio arose the following message:

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

    So I couldn't generate the classes.

    Has anyone been through that?



  • Try to update the Entity Framework

    update-package EntityFramework
    

    If it doesn't work, uninstall and install again through:

    Install-package EntityFramework 
    

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




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2