How can I remove a package in monodevelop if it cannot be restored?
When I try to remove a package from the decision tree, monodevelop gives me the message "Can't find package" ... "to remove it from the project. First, restore the package.
I cannot restore the package because NuGet.exe gives the error
"Error: SendFailure (writing error headers)" and then
"Could not find version of" NMK "package" SomePackageName "
How do I remove these packages?
source to share
You can fix the "SendFailure (Error writing headers)" error if you are on Linux by running:
mozroots --import --sync
If you cannot find the original NuGet package, you can manually remove the package. Currently, with the built-in NuGet add-on in MonoDevelop, you cannot force uninstall a NuGet package. MonoDevelop uses the contents of the NuGet package to determine what to remove from the project.
Manual removal will look like:
- Edit the packages.config file and remove the item
<package>
for that package. - Edit the project file (.csproj) and find any references from the packages directory (for example, packages / Newtonsoft.Json.6.0.5) for this NuGet package.
source to share