简体   繁体   中英

Nuget package update issues

I am having problems updating Nuget packages in Visual Studio 2013 for a solution.

I right-clicked the solution, chose "Manage packages for solution", then choose "Update All" in the update tab.

It all seemed to update fine, however, in the update tab, the packages that were updated are still showing as needing to update. If I then go to update them again, the list of projects shows each project that has the package, and each checkbox is disabled, as if it already knows they have been updated. So as far as I can tell, every project has been updated.

I have restarted Visual Studio

Anyone else come across this before?

Check your packages folder. It seems to me that this problem occurs when Nuget cannot, for whatever reason, delete the old package version. So if you've got a "MyLib 4.0.3.0" folder and a "MyLib 4.0.5.0" folder, then it will show both of them in the list of installed packages, and it will think that MyLib needs to be updated.

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