'How to uninstall a package by NuGet package console?
I have installed Microsoft Owin via nuget package manager console
PM> Install-Package Microsoft.Owin
Now i want to uninstall the Microsoft.Owin via
nuget package manager console
PM> Uninstall-Package Microsoft.Owin
but above line threw a error.
The term 'Uninstall-Package' is not recognized as the name of a cmdlet
Is it pssible to uninstall via nuget console?
Solution 1:[1]
I have done by a workaround.
Once I uninstalled Autofac.WebApi2.Owin
everything was gone.
Uninstall-Package Autofac.WebApi2.Owin -RemoveDependencies
Solution 2:[2]
You can also use Uninstall?Package <pkg id> –Force
to delete package when something else depends on it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | JNYRanger |