简体   繁体   中英

Cannot install Nuget Package Manager

I am using VS2010 on Windows 7 (64 bits). When trying to install "Nuget Package Manager" from VS's "Extension Manager" it fails. The download works, but then I am stuck at the installing progress bar. When looking in Windows' task manager yo can see that the installer keeps on starting up new instances of the "vsixinstaller.exe" process. It goes on and on until the computer ultimately crashes.

The same behaviour occurrs when starting the file "NuGet.Tools.vsix" directly.

I have searched the net for the solution but haven't been able to find anything useful.

I received the same behavior today so I decided to open Process Monitor to investigate.

Guess what...Process Monitor gives the same behavior. Then the light bulb went off... :)

Answer : I previously had administrator privileges on my laptop, but those were removed at the beginning of the new year. For some reason, when these programs use credentials that are not in the administrator group, they recursively call themselves instead of failing, timing out or reporting access denied, etc.

Please ensure that your attempting to update after launching VS as an Administrator.

I will be providing this feedback to the nuget support thread as well.

通过在SP1下安装Nuget和admin权限来修复。

I found a solution at NuGet Docs Known Issues . Installing the hotfix they recommend even though I have SP1. It includes KB2581019.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM