Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public NugetResult Find(Solution solution, Dependency dependency)
 {
     return(NugetSearch.FindNuget(solution, dependency));
 }