Follow us on X (Twitter)  Like us on Facebook  Connect with us on LinkedIn  Subscribe to our YouTube Channel  Subscribe to our WhatsApp Group

During the Ignite 2021 conference, Microsoft released Visual Studio 2019 version 16.9 which came with several new features and improvements. Microsoft also released a Preview Build of the Visual Studio 2019 version 16.10 with some more improvements for the IDE.


One of these new features is the ability to remove unused binary references from the projects loaded in Microsoft Visual Studio 2019. Let's learn how this can be beneficial for you.


Visual Studio 2019 will allow you to Remove Unused References


This happens several times when we end up adding a huge list of dll/binary references in our projects. Later, it becomes difficult to find out the unused references and remove them one by one. With the next version of Visual Studio 2019 release, Microsoft is now going to offer you an option to clean up those.


In the first preview build of Visual Studio 2019 version 16.10, Microsoft adds a Remove Unused References command. It can be invoked by right-clicking on the project name or the dependencies node in Solution Explorer and select the "Remove Unused References..." command from the menu.


Here's how to clean up unused references in Visual Studio 2019


Once you select the "Remove Unused References..." menu item, it will open a dialog where you can view all the references that can be safely removed. It will also provide you an option to preserve the ones that you want to keep.


Here's how to enable the 'Remove Unused References' feature in Visual Studio 2019


Microsoft says that the feature is off by default. You need to enable it from Tools > Options > Text Editor > C# > Advanced tab.


Have a question? Or, a comment? Let's Discuss it below...


Thank you for visiting our website!

We value your engagement and would love to hear your thoughts. Don't forget to leave a comment below to share your feedback, opinions, or questions.

We believe in fostering an interactive and inclusive community, and your comments play a crucial role in creating that environment.