private IEnumerable <MismatchedGuid> GetBadProjectRefGuids() { var solutionProjects = SolutionFile.FromFile(RoslynProject.Solution.FilePath).Projects; return(MsBuildProject.GetProjectReferences() .Where(r => !r.EqualByGuid(GetSolutionProjectFromProjectReference(r, solutionProjects))) .Select(r => new MismatchedGuid(r.GetProjectGuid(), r.GetProjectName(), "Project Reference"))); }