Ejemplo n.º 1
0
        public void Filter(Solution solution, Dependency dependency, NugetResult result)
        {
            if (!dependency.IsFloat() || !result.Found)
            {
                return;
            }

            var latest = NugetSearch.FindLatestByName(solution, dependency.Name);

            if (!latest.Found)
            {
                return;
            }

            if (latest.Nuget.Version > result.Nuget.Version)
            {
                result.Import(latest);
            }
        }
Ejemplo n.º 2
0
 public NugetResult Find(Solution solution, Dependency dependency)
 {
     return(NugetSearch.FindLatestByName(solution, dependency.Name));
 }