While trying to uninstall Entityframework
in Package Manager Console
by typing uninstall-package Entityframework
, following error is showing up:
uninstall-package : Unable to uninstall 'EntityFramework.6.4.4' because 'Microsoft.AspNet.Identity.EntityFramework.2.2.3' depends on it.
While trying to uninstall Microsoft.AspNet.Identity.EntityFramework.2.2.3
, following error shows up:
uninstall-package : Package 'Microsoft.AspNet.Identity.EntityFramework.2.2.3' to be uninstalled could not be found in project 'HMS'
After failing multiple attempts to uninstall entityframework package in Package Manager Console
, I decided to manually delete the respective packages folders from Packages
folder inside project directory, but Nuget
is restoring the package folders again i.e.,
PM> uninstall-package entityframeworkRestoring NuGet package EntityFramework.6.4.4.Restoring NuGet package Microsoft.AspNet.Identity.EntityFramework.2.2.3.Restoring NuGet package Microsoft.AspNet.Identity.Owin.2.2.3.Restoring NuGet package Microsoft.AspNet.Identity.Core.2.2.3.Adding package 'Microsoft.AspNet.Identity.EntityFramework.2.2.3' to folder 'E:\Visual Studio Projects\HMS\packages'Adding package 'EntityFramework.6.4.4' to folder 'E:\Visual Studio Projects\HMS\packages'Added package 'Microsoft.AspNet.Identity.EntityFramework.2.2.3' to folder 'E:\Visual Studio Projects\HMS\packages' GET https://api.nuget.org/v3-flatcontainer/microsoft.aspnet.identity.owin/2.2.3/microsoft.aspnet.identity.owin.2.2.3.nupkg GET https://api.nuget.org/v3-flatcontainer/microsoft.aspnet.identity.core/2.2.3/microsoft.aspnet.identity.core.2.2.3.nupkgAdded package 'EntityFramework.6.4.4' to folder 'E:\Visual Studio Projects\HMS\packages' OK https://api.nuget.org/v3-flatcontainer/microsoft.aspnet.identity.owin/2.2.3/microsoft.aspnet.identity.owin.2.2.3.nupkg 170ms OK https://api.nuget.org/v3-flatcontainer/microsoft.aspnet.identity.core/2.2.3/microsoft.aspnet.identity.core.2.2.3.nupkg 178msInstalled Microsoft.AspNet.Identity.Core 2.2.3 from https://api.nuget.org/v3/index.json with content hash Mv5FpoaxspE8hlWLE4r1IdZtovg/OyFgVRhxQbx47J4sqdLImN1hnM1lnwCj+/wLmqtqFk/RYMoZ5GAcwm/00g==.Installed Microsoft.AspNet.Identity.Owin 2.2.3 from https://api.nuget.org/v3/index.json with content hash gNr7dQGE23hAtWmSZVmKPJ+DKBw/obh68Ub7M5cCUiRNAqg6+6Jb3T7en4Fuw8R/8H5/sIsecrfT3MbK2/FzEg==.Adding package 'Microsoft.AspNet.Identity.Core.2.2.3' to folder 'E:\Visual Studio Projects\HMS\packages'Adding package 'Microsoft.AspNet.Identity.Owin.2.2.3' to folder 'E:\Visual Studio Projects\HMS\packages'Added package 'Microsoft.AspNet.Identity.Core.2.2.3' to folder 'E:\Visual Studio Projects\HMS\packages'Added package 'Microsoft.AspNet.Identity.Owin.2.2.3' to folder 'E:\Visual Studio Projects\HMS\packages'Attempting to gather dependency information for package 'EntityFramework.6.4.4' with respect to project 'HMS', targeting '.NETFramework,Version=v4.7.2'Resolving actions to uninstall package 'EntityFramework.6.4.4'uninstall-package : Unable to uninstall 'EntityFramework.6.4.4' because 'Microsoft.AspNet.Identity.EntityFramework.2.2.3' depends on it.At line:1 char:1+ uninstall-package entityframework+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (:) [Uninstall-Package], Exception+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UninstallPackageCommandTime Elapsed: 00:00:00.6990767
Where do I go now?