Example #1
0
        public static IEnumerable <SolutionFileProjectReference> GetDependencyProjectReferences(this SolutionFile solutionFile)
        {
            var dependencyProjectGUIDs = solutionFile.GetDependencyProjectGUIDs();

            var dependencyProjectReferences = solutionFile.SolutionFileProjectReferences.Where(x => dependencyProjectGUIDs.Contains(x.ProjectGUID));

            return(dependencyProjectReferences);
        }
Example #2
0
        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);
        }