Assembly Directive

Top  Previous  Next

T4 Assembly Directive

 

   <#@ assembly name="[assembly file name]" #>

 

 

The “assembly” directive identifies an assembly to be referenced by the template so that you can use types within that assembly from within the code in your template. Using the assembly directive is equivalent to using the Add Reference feature in the Clarion# IDE. The “assembly” directive does not affect the source code of the compiled template.

 

Example:

<#@ assembly name=”mscorlib.dll” #>

<#@ assembly name=”System.dll” #>

<#@ assembly name=”System.Drawing.dll” #>

<#@ assembly name=”System.Design.dll” #>

<#@ assembly name=”System.Drawing.Design.dll” #>