Home > Coding Helpers > Code Providers – Reference Assembly

Code Providers – Reference Assembly

August 30th, 2012

The Reference Assembly code provider is a simple coding helper which allows you to add an assembly reference if one does not exist for the type reference under the editor caret. The code provider is connected to the CodeRush Code Issues feature, so the editor caret should be located in the ‘Undeclared element’ code issue, for instance:

CodeRush Reference Assembly sample code

The code provider searches for the full type name under the editor caret and adds the required assembly reference once applied:

CodeRush Reference Assembly preview

so, the project no longer misses the assembly:

CodeRush Reference Assembly result

The code provider only searches in the several standard .NET assemblies.

—–
Products: CodeRush Pro
Versions: 12.1 and up
VS IDEs: 2008 and up
Updated: Aug/30/2012
ID: C182

Similar Posts: