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); } }
public NugetResult Find(Solution solution, Dependency dependency) { return(NugetSearch.FindLatestByName(solution, dependency.Name)); }