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