I cant figure out how to include the resource file (.resx) in the (.tt) T4 template.
I tried so far... Importing the namespace
<#@ import names
If you want to access the resources of a .resx-File from within a T4 template, this is how you would do it:
<#@ assembly name="$(TargetDir)\outputfile.ext" #>
<#@ import namespace="MyNamespace" #>
Then you can access the resources as usually:
<# var theResource = Resource1.TheResource; #>