mrward/monodevelop-nuget-addin

Unable to install package from local repository

ArsenShnurkov opened this issue · 3 comments

Adding ICSharpCode.TextEditor.dll...
Installing 'ICSharpCode.TextEditor.dll 3.2.2'.
Could not find a part of the path "/tmp/nuget/myak7i1k.owp/lib/net40/ICSharpCode.TextEditor.dll".

$ nuget config repositorypath
/var/calculate/remote/distfiles/NuGet
$ sudo nuget config repositorypath
/var/calculate/remote/distfiles/NuGet

this link doesn't contain the root reason:
http://stackoverflow.com/questions/29021243/unable-to-install-any-nuget-package-in-monodevelop
so, i don't understood how to fix setup

I have seen this reported on StackOverflow a couple of times but I have never worked out what the underlying problem is.

NuGet unzips the NuGet packages to a temporary directory so it does not have to hold the entire .zip file in memory.

Whilst the StackOverflow answer suggests removing monodevelop fixes the problem I have no idea how this fixes it. I do not see how this would solve anything.

I encountered this issue because another user had run nuget restore recently (me on another account, incidentally), and the /tmp/nuget dir was owned by that user, blocking the new user from creating or accessing it. Removing the tmp dir resolved the issue for me.