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?

Jon Skeet
people
quotationmark

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.

people

See more on this question at Stackoverflow