public async Task <List <PackageUpdateSet> > FindPackageUpdateSets(IFolder workingFolder) { // scan for nuget packages var packages = _repositoryScanner.FindAllNuGetPackages(workingFolder) .ToList(); _logger.Log(PackagesFoundLogger.Log(packages)); // look for updates to these packages var updates = await _packageUpdatesLookup.FindUpdatesForPackages(packages); _logger.Log(UpdatesLogger.Log(updates)); return(updates); }
private async Task <List <PackageUpdateSet> > FindPackageUpdateSets(IGitDriver git) { // scan for nuget packages var packages = _repositoryScanner.FindAllNuGetPackages(git.WorkingFolder) .ToList(); _logger.Log(EngineReport.PackagesFound(packages)); // look for package updates var updates = await _packageLookup.FindUpdatesForPackages(packages); _logger.Log(EngineReport.UpdatesFound(updates)); return(updates); }
private IReadOnlyCollection <PackageInProject> FindPackages(IFolder workingFolder) { // scan for nuget packages var allPackages = _repositoryScanner.FindAllNuGetPackages(workingFolder); var metaPackages = allPackages .Where(x => KnownMetapackage.Contains(x.Id, StringComparer.OrdinalIgnoreCase)); foreach (var metaPackage in metaPackages) { LogVersionedMetapackage(metaPackage); } return(allPackages.Except(metaPackages) .ToList()); }
public async Task <IReadOnlyCollection <PackageUpdateSet> > FindPackageUpdateSets( IFolder workingFolder, NuGetSources sources, VersionChange allowedChange) { // scan for nuget packages var packages = _repositoryScanner.FindAllNuGetPackages(workingFolder) .ToList(); _logger.Log(PackagesFoundLogger.Log(packages)); // look for updates to these packages var updates = await _packageUpdatesLookup.FindUpdatesForPackages( packages, sources, allowedChange); _logger.Log(UpdatesLogger.Log(updates)); return(updates); }