public static IPackageInfo Find(this ILookup<string, IPackageInfo> packages, WrapDependency dependency) { if (!packages.Contains(dependency.Name)) return null; return (from package in packages[dependency.Name] where package.Version != null && dependency.IsFulfilledBy(package.Version) orderby package.Version descending select package).FirstOrDefault(); }
public IPackageInfo Find(WrapDependency dependency) { return PackagesByName.Find(dependency); }
bool DependencyNotFound(WrapDependency dependency) { Log.LogError("The dependency on wrap '{0}' was not found.", dependency); return false; }