在 NuGet 中添加 2 个不同版本的同一包 [英] Add 2 different versions of same package in NuGet

查看:14
本文介绍了在 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 it's 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天全站免登陆