Esempio n. 1
0
        public IVsHierarchy GetHierarchy(System.IServiceProvider serviceProvider, EnvDTE.Project project)
        {
            var solution =
                serviceProvider.GetService(typeof(SVsSolution)) as IVsSolution;

            IVsHierarchy hierarchy;
            solution.GetProjectOfUniqueName(project.ToString(), out hierarchy);
            return hierarchy;
        }