Ask a questionAsk a question
 

Proposed AnswerT4 template in Isolated Shell

  • Friday, August 07, 2009 10:55 AMAbilash Sekharan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I am facing some problems when going for transforming T4 template in Isolated Shell.

    1)" TextTemplating.TransformAll " command is not enabled when .tt file is included in the Isolated Shell solution .

    2) for .tt file there will be an Extra menu button "Run Custom Tool" when we work in visualStudio(Integrated Shell) but when we go for isolated shell the above menu is not  available.

    3)I am able to transform the .tt file programmatically in a custom menu button using "ITextTemplating" Global service.

    ITextTemplating textTemplating = Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(STextTemplating)) as ITextTemplating;

    string output = textTemplating.ProcessTemplate(templateFile, template, null, null);


    How I make use of existing "TextTemplating.TransformAll" command for transforming in  Isolated Shell.

     

All Replies