Referencing Namespaces

If your template uses members declared in other namespaces, you can provide them in the template definition and CodeRush will automatically add required references upon template expansion.

Add the required namespaces to the Dependent Namespaces text box - one per line.


After that, the "nsq" template will add a reference to the System.Data.SqlClient upon expansion if it does not exist.


You can also specify namespace aliases if you use them in your template.