Exemple #1
0
        public IEnumerable <IProject> LoadProjectReferences()
        {
            if (_referencedProjects != null)
            {
                return(_referencedProjects);
            }

            _referencedProjects = _project.GetProjectReferences()
                                  .Select(p => _projectFactory.LoadProject(Path.GetFullPath(Path.Combine(DirectoryPath, p.EvaluatedInclude))))
                                  .Where(p => p != null)
                                  .Distinct()
                                  .ToList();

            return(_referencedProjects);
        }
Exemple #2
0
 public static IEnumerable <string> GetProjectReferenceNames(this Project project)
 {
     return(project.GetProjectReferences().Select(i => i.GetProjectName()));
 }