What is a VisualStudioHelper ? This seems to be a common thing, not something that is built into the T4 templating engine. If you need access to the current project, you can try the following:
var dte = (EnvDTE.DTE)((IServiceProvider)Host).GetService(typeof(EnvDTE.DTE)); var project = dte.Solution.FindProjectItem(Host.TemplateFile).ContainingProject;
Remember to import the assembly at the top of your T4 template:
<#@ assembly name="EnvDTE" #>
Pawel source share