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 个不同版本的同一包


基础教程推荐
- 如何激活MC67中的红灯 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- rabbitmq 的 REST API 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- 将 XML 转换为通用列表 2022-01-01
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01