简体   繁体   English

Nuget包更新问题

[英]Nuget package update issues

I am having problems updating Nuget packages in Visual Studio 2013 for a solution. 我在Visual Studio 2013中更新Nuget包以获得解决方案时遇到问题。

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 我重新启动了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. 在我看来,当Nuget无法以任何理由删除旧的软件包版本时,会出现此问题。 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. 因此,如果您有一个“MyLib 4.0.3.0”文件夹和一个“MyLib 4.0.5.0”文件夹,那么它将在已安装的软件包列表中显示它们,并且它会认为MyLib需要更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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