I want to pass some additional parameters to my T4 code generation templates in my TDS projects. In the TDS Projects Code Generation properties tab, there is a field for passing additional code generation properties, but I can't get this to work. I thought it would work like this:
Passing the parameters like this:
and then pick up the value in the T4 template like this:
<#@ parameter name="MyProperty" type="System.String" #> <# if (MyProperty == ...) ... #>
But the above doesn't work. The value of
MyProperty is always empty when running the T4 generation. What am I doing wrong? Have I perhaps completely misunderstood this feature?
(I'm using TDS 184.108.40.206, i.e. latest version when writing this)