NuGet.exe pack gives access to the path is denied

前端 未结 9 1294
生来不讨喜
生来不讨喜 2021-01-07 15:56

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

相关标签:
9条回答
  • 2021-01-07 16:57

    Run your Visual Studio with administrator rights.

    0 讨论(0)
  • 2021-01-07 16:58

    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/

    0 讨论(0)
  • In order to Restore nuget packages, remove read only permissions from the folder level (for windows). Clean the solution and Build. It will works

    0 讨论(0)
提交回复
热议问题