I\'m trying to re-install my EntityFramework package using
PM> Install-Package EntityFramework
But I get the following message
You can run following command in package manager
UnInstall-Package EntityFramework
Then Install the needed package using
Install-Package EntityFramework -Version 5.0.0
Try deleting it out of the project references, and out of packages.config
. Then re-add it.
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
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
Make sure any EntityFramework files are deleted from the File Explorer project folder after you do the top answer.