我们可以在NuGet中添加2个不同版本的同一软件包吗 [英] Can we add 2 different versions of same package in NuGet

查看:44
本文介绍了我们可以在NuGet中添加2个不同版本的同一软件包吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在同一项目中是否可以有2个不同版本的同一NuGet包(在我的情况下,其jQuery 1.10.1和2.0.2)?

Is it possible to have 2 different versions of the same NuGet package (in my case its jQuery 1.10.1 & 2.0.2) within same project?

如果是,我们该怎么做?

If yes, how can we do that?

谢谢

推荐答案

简短的答案是否".

查看NuGet问题允许并排使用jQuery(和其他版本).它由Phil Haack( NuGet 贡献者)关闭,并显示消息无法修复".

Check out NuGet issue Allow side-by-side versions of jQuery (and others). It was closed by Phil Haack (NuGet contributor) with message "won't fix".

Phil Haack建议的解决方法是您已经达到了NuGet的极限.只需使用CDN引用其中之一或手动添加脚本文件即可.

The recommended workaround by Phil Haack is You've hit the boundaries of NuGet. Just reference one of them using a CDN or manually add the script files.

这篇关于我们可以在NuGet中添加2个不同版本的同一软件包吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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