public NugetResult Find(Solution solution, Dependency dependency) { var feeds = FeedRegistry.FloatedFeedsFor(solution).ToArray(); var result = NugetSearch.FindNuget(feeds, x => { var feed = x.As <IFloatingFeed>(); var nuget = feed.FindLatest(dependency); if (nuget != null && dependency.Mode == UpdateMode.Fixed && nuget.IsUpdateFor(dependency)) { return(null); } return(nuget); }); if (!result.Found) { feeds .Where(x => x.IsOnline()) .Each(files => files.DumpLatest()); } return(result); }
public NugetResult Find(Solution solution, Dependency dependency) { return(NugetSearch.FindNuget(solution, dependency)); }