Nuget 包更新问题

Nuget package update issues(Nuget 包更新问题)
本文介绍了Nuget 包更新问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在更新 Visual Studio 2013 中的 Nuget 包以寻求解决方案时遇到问题.

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.

我已重新启动 Visual Studio

I have restarted Visual Studio

以前有人遇到过这个吗?

Anyone else come across this before?

推荐答案

检查你的包文件夹.在我看来,当 Nuget 出于某种原因无法删除旧包版本时,就会出现此问题.因此,如果您有一个MyLib 4.0.3.0"文件夹和一个MyLib 4.0.5.0"文件夹,那么它会在已安装的软件包列表中显示它们,并且它会认为 MyLib 需要更新.

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 包更新问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
quot;Overflowquot; compiler error with -9223372036854775808L(编译器错误-9223372036854775808L(Q;溢出Q))
Visual Studio 2010 ReportViewer Assembly References(Visual Studio 2010 ReportViewer程序集引用)
Weird behaviour when I open a reportviewer in WPF(在WPF中打开报表查看器时出现奇怪的行为)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)