Nuget package update issues

2020-04-02 08:06发布

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?

1条回答
贪生不怕死
2楼-- · 2020-04-02 08:49

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.

查看更多
登录 后发表回答