简体   繁体   中英

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. I want to upgrade Castle Windsor to 4.0.0 but Castle Core has a constraint that prevents it: < 4.0.0 .

How do you force update to upgrade a package ignoring version dependency constraints?

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 ?

If yes, as a workaround for this question, you can install the package Castle.Core 4.0.0 first. Then install the package Castle.Windsor with option " IgnoreDependencies " in the package manager console:

Install-Package Castle.Windsor -IgnoreDependencies

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM