public void CheckForUpdates() { foreach (IPackageManagementProject project in projects) { UpdatedPackagesInProject updatedPackages = updatedPackagesInSolution.CheckForUpdates(project); if (disposed) { break; } if (updatedPackages.AnyPackages()) { projectsWithUpdatedPackages.Add(updatedPackages); } } projects.Clear(); if (disposed) { projectsWithUpdatedPackages.Clear(); } }
PackageReferenceNode CreatePackageReferenceNode (PackageReference reference, UpdatedPackagesInProject updatedPackages) { return new PackageReferenceNode ( reference, IsPackageInstalled (reference), false, updatedPackages.GetUpdatedPackage (reference.Id)); }