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?
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 问题Allow side-by-side versions of jQuery (and others)。它由 Phil Haack(NuGet 贡献者)关闭,并显示消息“不会修复”。
Phil Haack 推荐的解决方法是“你已经达到了 NuGet 的边界。只需使用 CDN 引用其中一个或手动添加脚本文件。”