JoeMjr2
JoeMjr2

Reputation: 3944

Visual Studio find nuget packages that aren't being used

Sometimes I load Nuget packages into my solution that I don't end up actually using, or I use them for awhile, then switch to something else, and forget to remove the old package. I suspect that my solution has Nuget packages installed that I'm not actually using anymore.

Is there a way to find unused installed Nuget packages, other than removing them one by one and checking for build errors?

Upvotes: 5

Views: 5728

Answers (1)

Leo Liu
Leo Liu

Reputation: 76770

You can use the ReSharper to help you remove those unused NuGet packages.

ReSharper 10.1 EAP significally improves performance on updating NuGet packages and analyzing project references. It also fixes a set of issues that used to break compilation by erroneously removing references that were in fact in use (which, for instance, used to happen when using the dynamic type).

Note that:ReSharper does not support for project.json projects (RSRP-454515) and ASP.NET core projects (RSRP-459076)

Upvotes: 2

Related Questions