添加“Microsoft.jQuery.Unobtrusive.Validation”包请求jQuery 1.4.1?

前端之家收集整理的这篇文章主要介绍了添加“Microsoft.jQuery.Unobtrusive.Validation”包请求jQuery 1.4.1?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在其中一个项目中,我需要重新安装jQuery NuGet包(一个MVC解决方案)。

还有一个“Microsoft.jQuery.Unobtrusive.Validation”,我应该在删除jQuery包之前卸载它。

现在我尝试(重新)安装jQuery包,以及之前删除的所有依赖包。 “Microsoft.jQuery.Unobtrusive.Validation”包打破说:

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’.

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

我应该注意类似的“Microsoft.jQuery.Unobtrusive.Ajax”包没有这个’bug’。安装没有问题。

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

这是错误日志:

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’.

我现在遇到了同样的问题。

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

原文链接:https://www.f2er.com/windows/372221.html

猜你在找的Windows相关文章