In order to use a component in your project, you should add a reference to the appropriate assembly. But what if there are
too many references and some of them are no longer required? Of course, you can select a reference,
- Select a project or the References node in Solution Explorer.
- Do one of the following:
- Choose ReSharper | Find | Optimize References.
- Right-click the project, and then click Optimize References.
- Press Ctrl+Alt+M.
All found references are displayed in the Analyze references window.
You can look through unused references and either remove all of them by clicking Remove All Unused References or remove only selected ones by clicking Remove Selected References.
NoteAll projects contain an implied reference to
mscorlib. In Visual Studio 2010, all projects contain an implied reference to
System.Core, even if
System.Coreis removed from the list of references.