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 个不同版本的同一包
基础教程推荐
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
- WPF 模态进度窗口 2022-01-01
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
