[英]Update a NuGet Package to latest version even when there's a constraint that prevents the whole action
For example, I've a solution on which I'm using Castle Windsor that depends on Castle Core. 例如,我有一个使用Castle Windsor的解决方案,该解决方案取决于Castle Core。 I want to upgrade Castle Windsor to 4.0.0 but Castle Core has a constraint that prevents it:
< 4.0.0
. 我想将Castle Windsor升级到4.0.0,但是Castle Core有一个阻止它的约束:
< 4.0.0
。
How do you force update
to upgrade a package ignoring version dependency constraints? 您如何在忽略版本依赖性约束的情况下强制进行
update
以升级软件包?
How do you force update to upgrade a package ignoring version dependency constraints?
您如何在忽略版本依赖性约束的情况下强制进行更新以升级软件包?
Do you want to upgrade Castle.Core to 4.0.0 rather than Castle.Windsor ? 您是否要将Castle.Core升级到4.0.0而不是Castle.Windsor ?
If yes, as a workaround for this question, you can install the package Castle.Core 4.0.0 first. 如果是,作为此问题的解决方法,您可以首先安装软件包Castle.Core 4.0.0。 Then install the package Castle.Windsor with option " IgnoreDependencies " in the package manager console:
然后在软件包管理器控制台中使用选项“ IgnoreDependencies ”安装Castle.Windsor软件包:
Install-Package Castle.Windsor -IgnoreDependencies
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.