Rony
Rony

Reputation: 9511

How can I use custom methods inside a T4 template which resides in another assembly

I have a dll called utilities which contains some helper methods and I want to use one of the helper methods inside a T4 template like <#=tbl.ClassName.ToProper()#>

Upvotes: 4

Views: 466

Answers (1)

Oleg Sych
Oleg Sych

Reputation: 6558

You will need to use assembly and import directives to reference your dll and the namespace where your helper class is defined.

Upvotes: 5

Related Questions