加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-13 20:46:53 所属栏目:Windows 来源:网络整理
导读:在其中一个项目中,我需要重新安装jQuery NuGet包(一个MVC解决方案)。 还有一个“Microsoft.jQuery.Unobtrusive.Validation”,我应该在删除jQuery包之前卸载它。 现在我尝试(重新)安装jQuery包,以及之前删除的所有依赖包。 “Microsoft.jQuery.Unobtrusive
在其中一个项目中,我需要重新安装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”,这次安装得很好:)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读