Skip to content
mnaoumov.dev
Go back

T4 Assembly references for Design-time templates

Generally assemblies in T4 added via Assembly directive

MSDN detailed description

Common snippets:

<#@ Assembly Name="AssemblyFromGAC" \#>
<#@ Assembly Name="AssemblyFromGAC, Version=4.0.0.0, Culture=neutral, PublicKeyToken=abcd1234abcd1234" \#>
<#@ Assembly Name="c:\path\to\file.dll" \#>
<#@ Assembly Name="$(SolutionDir)\Project1\$(OutDir)\Project1.dll" \#>
<#@ Assembly Name="$(ProjectDir)\$(OutDir)\Project1.dll" \#>
<#@ Assembly Name="$(ProjectDir)\$(OutDir)\$(TargetFileName)" \#>

Share this post on:

Previous Post
WCF _ useless ProtocolException
Next Post
T4 Design-Time templates base class