Remove unused references refactor in Visual Studio

If you’ve used ReSharper with Visual Studio you may have used the ‘Remove Unused References ‘ option before. As of 2019 v 16.10 Visual Studio has similar built in functionality that enables us to clean up unused project references and NuGet packages in our solutions. 

Enable it from Tools > Options > Text Editor > C# > Advanced.

An example of the functionality is below…

Leave a Reply

Your email address will not be published. Required fields are marked *