public static IEnumerable <SolutionFileProjectReference> GetDependencyProjectReferences(this SolutionFile solutionFile) { var dependencyProjectGUIDs = solutionFile.GetDependencyProjectGUIDs(); var dependencyProjectReferences = solutionFile.SolutionFileProjectReferences.Where(x => dependencyProjectGUIDs.Contains(x.ProjectGUID)); return(dependencyProjectReferences); }
public static IEnumerable <SolutionFileProjectReference> GetNonDependencyProjectReferences(this SolutionFile solutionFile) { var dependencyProjectGUIDs = solutionFile.GetDependencyProjectGUIDs(); var dependencyProjectReferences = solutionFile.SolutionFileProjectReferences.Where(x => !dependencyProjectGUIDs.Contains(x.ProjectGUID) && x.ProjectName != Constants.DependenciesSolutionFolderName); return(dependencyProjectReferences); }