示例#1
0
        private IEnumerable <IProject> LoadProjects()
        {
            if (_projects != null)
            {
                return(_projects);
            }

            _projects = new List <IProject>();

            foreach (var projectInSolution in _file.GetMsBuildProjects())
            {
                var project = _projectFactory.LoadProject(projectInSolution.AbsolutePath);

                if (project == null)
                {
                    continue;
                }

                _projects.Add(project);
            }

            return(_projects);
        }