How can you find unused NuGet packages in solution?

前端 未结 5 1030
面向向阳花
面向向阳花 2020-12-04 11:28

How can you find the unused NuGet packages in a solution?

I\'ve got a number of solutions where there are a lot of installed packages, and a large number of them are

5条回答
  •  广开言路
    2020-12-04 12:21

    You can use the Visual Studio Extension ResolveUR - Resolve Unused References.

    Resolve unused references including nuget references in Visual Studio 2012/2013/2015 projects via menu item at solution and project nodes Solution Explorer Tool Window

    It's not an easy task, so I suggest to make a backup and/or commit before, just in order to rollback if something went wrong.

提交回复
热议问题