I'm trying to build a Visual Studio solution that references NuGet packages. I've copied the solution from someone else's computer (via Git, but I don't know if the means of copying is important here). I keep getting this command when I try to build the solution:
Error 3 The command ""D:\Custom Work\MySolution\Project\.nuget\nuget.exe" install
"D:\Custom Work\MySolution\Project\AAIA.Model\packages.config" -source ""
-RequireConsent -o "D:\Custom Work\MySolution\Project\packages"" exited with code 5.
Please verify that you have sufficient rights to run this command.
I've checked the permissions on all the folders, and they all seem to be fine. No sharing violations either; Visual Studio 2010 is the only program that is touching these files and folders. Why would this be happening?
Your cloning solution may not be passing in windows 'execute' permission for the nuget.exe file.
If you are cloning using git clone in cygwin, then attempting to use visual studio to open and build, the permission will not have been properly set for nuget.exe. The 'linux' of it doesn't support windows' executable permission. If you clone using something like git-extensions you can avoid this problem since its built for windows and supports the executable permission.
Or in my case the <solution root>\.nuget\nuget.exe
file got corrupted.
<solution root>\.nuget\nuget.exe
fileIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With