Skip to content

jainaashish/NuGet.CatalogReader

 
 

Repository files navigation

NuGet.CatalogReader

NuGet.CatalogReader is a library for reading the full list of package ids, versions, and the change history for NuGet v3 feeds.

NuGetMirror.exe is a tool that uses NuGet.CatalogReader to download packages from a NuGet v3 feed to a folder on disk.

AppVeyor Travis
AppVeyor Travis

Releases

Nightly build feed

https://nuget.blob.core.windows.net/packages/index.json

Coding

This solution uses .NET Core, get the tools here.

License

MIT License

Using NuGet.CatalogReader

Discover all packages in a feed using GetFlattenedEntriesAsync. To see the complete history including edits use GetEntriesAsync.

var feed = new Uri("https://api.nuget.org/v3/index.json");

using (var catalog = new CatalogReader(feed))
{
    foreach (var entry in await catalog.GetFlattenedEntriesAsync())
    {
        Console.WriteLine($"[{entry.CommitTimeStamp}] {entry.Id} {entry.Version}");
    }
}

Using NuGetMirror.exe

Mirror all packages to a folder on disk.

NuGetMirror.exe nupkgs https://api.nuget.org/v3/index.json -o d:\tmp

About

NuGet v3 catalog reader

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 97.2%
  • PowerShell 2.1%
  • Other 0.7%