Hello! There's a template which traverses all files in solution and generates helpers for some of them. Currently the bootstrap part looks like
string projectName = "SomeProject"; IServiceProvider serviceProvider = (IServiceProvider)this.Host; DTE dte = (DTE)serviceProvider.GetService(typeof(DTE)); Project currentProject = dte.Solution.Projects.Cast<Project>().Single(p=>p.Name == projectName); Visit(currentProject);
Now I'm need to create reusable template, so, I need a way to obtain the name of the current project without hardcoding it. Any suggestions?
Thanks!