|
Rank: Guest
Groups:
Joined: 3/16/2009 Posts: 1,002
|
========================================= Update this issue was fixed in Version 1.5.02 / 24. May 2009 =========================================
Hi there,
if you are working with T4 toolbox a lot and create your own Generators or Testers you might be interested to know how this intelli-sense trick. Currently it is better to write out the full name to get full intellisense like shown here:
<#@ template language="C#v3.5" hostspecific="True" debug="True" #> <#@ output extension="cs" #> <#@ include file="T4Toolbox.tt"#>
<# var TR = new MyT4basedTemplateTester(); #> <#+
// Note that you have to use full qualified type names within nested classes e.g. GeneratedTextTransformation.Template to get full intellisense class MyT4basedTemplate : GeneratedTextTransformation.Template { void Render_Core(){ this.Write("Hello"); } }
class MyT4basedTemplateTester { // Note that you have to use full qualified type names within nested classes e.g. GeneratedTextTransformation.Template to get full intellisense GeneratedTextTransformation.MyT4basedTemplate t = new GeneratedTextTransformation.MyT4basedTemplate(); public void test() { t.Render(); } } #> Hope this helps
Tim
|