Uninstall EntityFramework using the Package Manager Console

c# entity-framework

Question

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

PM> Install-Package EntityFramework

But I get the following message

'EntityFramework 5.0.0' already installed. already has a reference to 'EntityFramework 5.0.0'.

So I tried to uninstall the package using

PM> Uninstall-Package EntityFramework -Force

But I keep on getting the following message

Uninstall-Package : Unable to find package 'EntityFramework'.
At line:1 char:1
+ Uninstall-Package EntityFramework -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Uninstall-Package], InvalidOperationException

How do I re-install the package?

1
26
7/15/2013 11:53:54 AM

Accepted Answer

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

29
10/16/2015 12:54:00 PM

Popular Answer

To remove/uninstall: In the Package Manager Console run:

UnInstall-Package EntityFramework -Version 6.0.2



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow