When I try to pack my MVC project (NuGet.exe pack
) I get:
NuGet.exe : Access to the path \'...\' is denied.
This happens to be
Run your Visual Studio with administrator rights.
In my case something happened when switching branch in git. Everyone lost execute permissions for Nuget.exe.
This blog post helped me: http://mannysiddiqui.wordpress.com/2013/05/11/nuget-access-is-denied-command-existed-with-code-5/
In order to Restore nuget packages, remove read only permissions from the folder level (for windows). Clean the solution and Build. It will works