DEV Community

Pawan Sharma
Pawan Sharma

Posted on

A robust solution for managing and resolving conflicts in NuGet package dependencies within Visual Studio

Today I got a project in .net core for upgrading the version from .net 6 to 8 and I was super excited but when I set up the project on my system, I found the complexity of the project.

There are 8-10 projects and references to each other’s. I started to work on upgradation. I was happy because I had done my job (.Net 6 to 8) but when I built the project then lots of errors are there regarding conflicts of dependencies,

Image description

So, I started to resolve it one by one but when I built the project again then errors of conflict increased more. I spent much more time to resolve the issues but not succeed then I found NuGetSolver to resolve this issue. I downloaded the extension from VS Marketplace. NuGetSolver is a powerful Visual Studio extension designed to help you tackle NuGet dependency conflicts with ease.

I run the tool from the “Solution Explorer” by right-clicking and selecting “Resolve Dependency Conflicts”.

Image description

You can run the tool even if your solution doesn’t have any dependency conflicts at the moment. It will upgrade your dependencies while keeping the changes minimal.

Image description

Thanks, See you in next blog.

Top comments (0)