添加"Microsoft.jQuery.Unobtrusive.Validation";包要求使用jQuery 1.4.1? [英] Adding the "Microsoft.jQuery.Unobtrusive.Validation" package asks for jQuery 1.4.1?

查看:65
本文介绍了添加"Microsoft.jQuery.Unobtrusive.Validation";包要求使用jQuery 1.4.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在其中一个项目中,我需要重新安装jQuery NuGet软件包(一种MVC解决方案).

In one of the projects I needed to reinstall the jQuery NuGet package (a MVC solution).

还有一个"Microsoft.jQuery.Unobtrusive.Validation",我应该在删除jQuery程序包之前先将其卸载.

There were also a "Microsoft.jQuery.Unobtrusive.Validation", that I should uninstall before removing the jQuery package.

现在,我尝试(重新)安装jQuery软件包以及之前删除的所有相关软件包. "Microsoft.jQuery.Unobtrusive.Validation"包中断了:

Now I try to (re)install the jQuery package, and all dependent packages I removed before. The "Microsoft.jQuery.Unobtrusive.Validation" package breaks saying:

试图解决依赖关系'jQuery(≥1.8)'.
尝试解决依赖项"jQuery.Validation(≥1.8)".
尝试解决依赖关系'jQuery(≥1.3.2&&≤≤1.6)'.
将"jQuery 1.8.0"更新为"jQuery 1.4.1"失败.
找不到版本为'Microsoft.jQuery.Unobtrusive.Validation'的 与jQuery 1.4.1兼容.

Attempting to resolve dependency 'jQuery (≥ 1.8)'.
Attempting to resolve dependency 'jQuery.Validation (≥ 1.8)'.
Attempting to resolve dependency 'jQuery (≥ 1.3.2 && ≤ 1.6)'.
Updating 'jQuery 1.8.0' to 'jQuery 1.4.1' failed.
Unable to find a version of 'Microsoft.jQuery.Unobtrusive.Validation' that is compatible with 'jQuery 1.4.1'.

是das吗?我需要使用最新的jQuery(2.0.xx)!

was is das? I need to use the latest jQuery (2.0.xx)!

我应该指出类似的"Microsoft.jQuery.Unobtrusive. Ajax "包没有此错误".它安装没有问题.

I should remark that the similar "Microsoft.jQuery.Unobtrusive.Ajax" package does not have this 'bug'. It was installed without problems.

PS.现在,我尝试安装(非Microsoft)jQuery.Validation ...

PS. Now I tried to install the (non-Microsoft)jQuery.Validation...

这是错误日志:

尝试解决依赖项'Microsoft.jQuery.Unobtrusive.Validation(≥2.0.20613.0)'.
尝试解决依赖关系'jQuery.Validation(≥1.8&&< 2.0)'.
尝试解决依赖关系'jQuery(≥1.3.2&&≤≤1.6)'.
安装"jQuery 1.4.1".已成功安装"jQuery 1.4.1".
正在安装"jQuery.Validation 1.8".
已成功安装"jQuery.Validation 1.8".
正在安装"Microsoft.jQuery.Unobtrusive.Validation 2.0.20710.0".
已成功安装"Microsoft.jQuery.Unobtrusive.Validation 2.0.20710.0".
安装'jQuery.Validation.Unobtrusive 2.0.20710.0'.
已成功安装"jQuery.Validation.Unobtrusive 2.0.20710.0".
安装失败.
正在回滚...
将"jQuery 1.9.0"更新为"jQuery 1.4.1"失败.找不到与'jQuery 1.4.1'兼容的'bootstrap,jQuery.BlockUI,Microsoft.jQuery.Unobtrusive.Ajax'版本.

Attempting to resolve dependency 'Microsoft.jQuery.Unobtrusive.Validation (≥ 2.0.20613.0)'.
Attempting to resolve dependency 'jQuery.Validation (≥ 1.8 && < 2.0)'.
Attempting to resolve dependency 'jQuery (≥ 1.3.2 && ≤ 1.6)'.
Installing 'jQuery 1.4.1'. Successfully installed 'jQuery 1.4.1'.
Installing 'jQuery.Validation 1.8'.
Successfully installed 'jQuery.Validation 1.8'.
Installing 'Microsoft.jQuery.Unobtrusive.Validation 2.0.20710.0'.
Successfully installed 'Microsoft.jQuery.Unobtrusive.Validation 2.0.20710.0'.
Installing 'jQuery.Validation.Unobtrusive 2.0.20710.0'.
Successfully installed 'jQuery.Validation.Unobtrusive 2.0.20710.0'.
Install failed.
Rolling back...
Updating 'jQuery 1.9.0' to 'jQuery 1.4.1' failed. Unable to find versions of 'bootstrap, jQuery.BlockUI, Microsoft.jQuery.Unobtrusive.Ajax' that are compatible with 'jQuery 1.4.1'.

推荐答案

我现在也遇到了同样的问题.

I just ran into this same issue now.

使用NuGet,我添加了"jQuery",然后添加了"jQuery Validatation" 再次尝试了"Microsoft jQuery Unobtrusive Validation",这次安装很好:)

Using NuGet I added "jQuery", then "jQuery Validatation" Tried "Microsoft jQuery Unobtrusive Validation" again, this time it installed nicely :)

这篇关于添加"Microsoft.jQuery.Unobtrusive.Validation";包要求使用jQuery 1.4.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆