简体   繁体   English

无法更新JQuery的Nuget程序包

[英]Unable to update Nuget Package for JQuery

I have a project in VS 2010 and using Visual Source Safe 2005 for source control system. 我在VS 2010中有一个项目,并将Visual Source Safe 2005用于源代码控制系统。 Whenever I try to update my NuGet Package. 每当我尝试更新我的NuGet软件包时。 It shows "Installed" but, there are a lot of red color lines that appear and go as Nuget is isntalling packages. 它显示“已安装”,但也有很多的出现,去为的NuGet是isntalling包红色线条。

I assume the installation is not correct for this. 我认为此安装不正确。 Can anybody help on this? 有人可以帮忙吗?

在此处输入图片说明

It looks like it's failing to uninstall a previous version of jquery ui because it has been modified from the original. 似乎无法卸载先前版本的jquery ui,因为它已从原始版本中进行了修改。

Try manually delete all the jquery files and remove the package node from the packages.config in the project file. 尝试手动删除所有jquery文件,然后从项目文件中的packages.config中删除包节点。

Because you want to keep your custom jquery ui, but appear to either upgrading all packages or upgrading a package with a dependency on a newer version of jquery you are getting these errors. 因为您想保留自定义的jQuery用户界面,但似乎升级了所有软件包或升级了依赖于较新版本的jQuery的软件包,所以遇到了这些错误。

If you are just trying to update all packages, and don't have any that rely on jquery ui I would remove it from the packages.config. 如果您只是尝试更新所有软件包,并且没有依赖于jQuery UI的任何软件包,我会从packages.config中将其删除。 The files will still be there but no longer managed by NuGet. 文件将仍然存在,但不再由NuGet管理。

If you are trying to upgrade a specific package that has a higher jquery ui dependency, then you can fake that the higher version is installed by editing the config, however the dependency is probably there for a reason and I wouldn't recommend doing this. 如果您要升级具有较高jQuery ui依赖性的特定程序包,则可以通过编辑config来伪装安装了更高版本的软件包,但是这种依赖性可能是有原因的,我不建议您这样做。

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

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