Uninstall EntityFramework using the Package Manager Console

后端 未结 9 606
死守一世寂寞
死守一世寂寞 2021-02-01 17:30

I\'m trying to re-install my EntityFramework package using

PM> Install-Package EntityFramework

But I get the following message

相关标签:
9条回答
  • 2021-02-01 17:39

    You can run following command in package manager

    UnInstall-Package EntityFramework

    Then Install the needed package using

    Install-Package EntityFramework -Version 5.0.0
    
    0 讨论(0)
  • 2021-02-01 17:41
    1. Try it without -Force.
    2. Try to specify -ProjectName parameter and execute it over each project that includes the EntityFramework package.
    0 讨论(0)
  • 2021-02-01 17:44

    Try deleting it out of the project references, and out of packages.config. Then re-add it.

    0 讨论(0)
  • 2021-02-01 17:45

    I experienced a similar issue, and it came down to an incorrect path. You are unable to find the package as the full namespace for Entity Framework is Microsoft.AspNet.Identity.EntityFramework.

    Therefore, to uninstall you need to enter the following into the Package Manager:

    Uninstall-Package Microsoft.AspNet.Identity.EntityFramework

    0 讨论(0)
  • 2021-02-01 17:48

    I have been facing this issue for days. To solve the issue I tried the latest version of framework, uninstalled it and installed previous version. All the possibilities tried were not working for me. At last, I found a solution and just run the below command at Package manger Console.

    PM>install-Package Microsoft.AspNet.Identity.EntityFramework
    

    everything is done by itself. Uninstalling old version and installing the latest version of Ef under Microsoft.AspNet.Identity.EntityFramework 2.2.2 and it updates the files of my project by itself.

    After installation, the image below show what I have by going to tools->Nuget Packagemanager->package visualizer

    enter image description here

    0 讨论(0)
  • 2021-02-01 17:50

    Make sure any EntityFramework files are deleted from the File Explorer project folder after you do the top answer.

    0 讨论(0)
提交回复
热议问题