[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
  System Requirements
  Improve Performance
 [Expand]Features by Language
 [Expand]Getting Started
 [Expand]How To
 [Expand]Coding Assistance
 [Expand]Navigation and Search Tools
 [Expand]Static Code Analysis
 [Expand]Visualization Tools
 [Collapse]Code Style Assistance
  [Expand]Code Formatters
   Programming Style Rules
   Naming Conventions
  [Expand]Code Cleanup
   Remove Unused Assembly References
  [Expand]Document Formatting (C#)
   Document Formatting (XAML)
   Organize Members
   Move Member to Region
  Building Assistance
  Debugging Assistance
 [Expand]Refactoring Assistance
 [Expand]Unit Testing Assistance
 [Expand]Decompiling Tools
 [Expand]Configuration Options
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Remove Unused Assembly References

This feature enables you to remove the Assembly References you never used in your project.

Expanded How to Use

Right-click the required project in the Solution Explorer and choose Remove Unused References.

CodeRush invokes the confirmation dialog with the found references. You can select which references to remove and use the Remove button to confirm your selection.

Expanded Customization

You can configure the Remove Unused References feature in the IDE | Assembly References options page.

The Remove Unused References feature excludes both assembly references copied locally and DevExpress assemblies from analysis. In some cases, references on assemblies in code are missing, but these assemblies are required for application deployment.

To include these assemblies in analysis:

  • Check the "Remove assembly references copied locally" item.
  • Remove the "DevExpress*" line from the "Never remove the following assembly references" text field.

The usage (Imports) statements are not removed; use the Remove unused namespace references cleanup refactoring to remove unused imports in the entire project.

Is this topic helpful?​​​​​​​