Nuget软件包更新问题

编程入门 行业动态 更新时间:2024-10-26 02:27:19
本文介绍了Nuget软件包更新问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在更新Visual Studio 2013中的解决方案时遇到问题。

我右键单击解决方案,选择管理解决方案的软件包,然后选择

一切似乎都可以更新,但是,在更新选项卡中,已更新的软件包仍显示为需要更新。如果我随后再次对其进行更新,则项目列表将显示每个具有软件包的项目,并且每个复选框都被禁用,就好像它已经知道它们已被更新一样。据我所知,每个项目都已更新。

我已重新启动Visual Studio

任何人

解决方案

检查您的packages文件夹。在我看来,无论出于何种原因,Nuget无法删除旧的软件包版本,都会出现此问题。因此,如果您有一个 MyLib 4.0.3.0文件夹和一个 MyLib 4.0.5.0文件夹,那么它将在已安装的软件包列表中同时显示这两个文件夹,并且认为MyLib需要更新。 / p>

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.

更多推荐

Nuget软件包更新问题

本文发布于:2023-07-05 15:53:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1039132.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:软件包   Nuget

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!