我们可以在NuGet中添加2个不同版本的相同包
是否可以在同一个项目中拥有2个不同版本的相同NuGet包(在我的例子中是jQuery 1.10.1和2.0.2)?
如果是的话,我们怎么做呢?
谢谢
最简洁的答案是不。
查看NuGet问题允许jQuery(和其他)的并排版本 。 它由Phil Haack( NuGet
撰稿人)关闭,消息“将无法修复”。
Phil Haack推荐的解决方法是You've hit the boundaries of NuGet. Just reference one of them using a CDN or manually add the script files.
You've hit the boundaries of NuGet. Just reference one of them using a CDN or manually add the script files.