Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find unneeded PackageReference in csproj

I am in the process of doing clean up on a project that has gone through much of the dev cycle and is almost ready to go to production. I wanted to remove any unneeded PackageReferences in the the csproj but can not seem to find any way to detect them, except to perhaps to remove each one individually and try building... is there an easy way to see which of the PackageReferenceare actually needed for your project?

like image 715
Serj Sagan Avatar asked Sep 18 '25 04:09

Serj Sagan


1 Answers

You can use Visual Studio Extension: ResolveUR - Resolve Unused References or use Resharper if you have installed it.

like image 187
Feiyu Zhou Avatar answered Sep 19 '25 16:09

Feiyu Zhou