// Deprecated: remove when old project parsing is retired public static List <String> GetSolutionProjectsFullNames(DTE dte) { List <String> projectNames = new List <String>(); EnvDTE.Solution solution = dte.Solution; EnvDTE.Projects projects = solution.Projects; List <Guid> guids = new List <Guid>(); foreach (EnvDTE.Project project in projects) { guids.Add(ProjectUtility.ReloadProject(project)); } projects = solution.Projects; foreach (EnvDTE.Project project in projects) { projectNames.Add(project.FullName); } foreach (Guid guid in guids) { ProjectUtility.UnloadProject(guid, dte); } return(projectNames); }
static public bool ContainsCFiles(DTE dte) { List <Project> projects = GetSolutionProjectList(dte); // dte.Solution.Projects; foreach (Project project in projects) { if (ProjectUtility.ContainsCFiles(project) == true) { return(true); } } return(false); }