private static IEnumerable <PackageDependency> GetBrokenDependencies(SourcePackageDependencyInfo package, IEnumerable <PackageIdentity> packages) { foreach (var dependency in package.Dependencies) { var target = packages.FirstOrDefault(targetPackage => StringComparer.OrdinalIgnoreCase.Equals(targetPackage.Id, dependency.Id)); if (!ResolverUtility.IsDependencySatisfied(dependency, target)) { yield return(dependency); } } yield break; }