示例#1
0
        // 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);
        }
示例#2
0
        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);
        }