User Tools

Site Tools


assembly_directive.htm
Navigation:  T4 Template Language Reference > Directives >Assembly Directive Previous pageReturn to chapter overviewNext page

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' #>

assembly_directive.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1