Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 public IPackageInfo Find(WrapDependency dependency)
 {
     return PackagesByName.Find(dependency);
 }
Ejemplo n.º 3
0
 bool DependencyNotFound(WrapDependency dependency)
 {
     Log.LogError("The dependency on wrap '{0}' was not found.", dependency);
     return false;
 }