Add 2 different versions of same package in NuGet(在 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 个不同版本的同一包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 NuGet 中添加 2 个不同版本的同一包


- C#MongoDB使用Builders查找派生对象 2022-09-04
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 输入按键事件处理程序 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01