简体   繁体   中英

Update nuget package referenced by package

I have a nuget-package A in my project that uses nuget-package B .

When I update package B I alway have to update the nuget-package-rerefence to B in nuget-package A and then update the nuget-package-reference to A in my project.

Is there any way to directly update the implicitly referenced nuget-package B in my top-level-project?

Is there any way to directly update the implicitly referenced nuget-package B in my top-level-project?

Sure, just add a direct dependency from your project to package B - then you can specify the version you want.

When package A is updated so that it now refers to the same version of B as you want, you can remove the direct dependency again.

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