In comments on my previous post @BlackMael asked about doing something similar to DX_NewItem, only with assembly references instead of Project Items.
That sounds like a challenge to me :D
My answer to this is that there already exists an AddAssemblyReference TextCommand in CodeRush. But that ‘s only useful if you know what to do with it.
So here’s a quick guide on setting up a “Dynamic List” of Assemblies
- First Create a new Dynamic list (DevExpress\Options Core\Dynamic Lists)
- Then populate it with Assembly names and suitable mnemonics
- Finally create a template that references the variable used in the list.
You’re done!
You can now use ‘ar’ in combination with any Assembly added to the assembly list and CodeRush will add your assembly reference without ever needing to go near the dreaded “Add Reference” Dialog