load nuget icon

This commit is contained in:
Matt Parker
2025-11-01 14:57:10 +10:00
parent 55a89baedf
commit 2e5c91e6b1
3 changed files with 36 additions and 1 deletions

View File

@@ -49,6 +49,17 @@ public class NugetClientService
.Take(100)
.ToList();
// foreach (var package in topPackages)
// {
// var repository = Repository.Factory.GetCoreV3(package.PackageSources.Single());
// var packageMetadataResource = await repository.GetResourceAsync<PackageMetadataResource>(cancellationToken).ConfigureAwait(false);
// var metadata = await packageMetadataResource.GetMetadataAsync(
// package.PackageSearchMetadata.Identity.Id, includePrerelease: _includePrerelease, includeUnlisted: false,
// cache, logger, cancellationToken).ConfigureAwait(false);
// ;
// var packageByIdResource = await repository.GetResourceAsync<FindPackageByIdResource>(cancellationToken).ConfigureAwait(false);
// }
// we need to find out if other package sources have the package too
foreach (var package in topPackages)
{