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); }
public static IEnumerable <string> GetProjectReferenceNames(this Project project) { return(project.GetProjectReferences().Select(i => i.GetProjectName())); }