dotnet-outdated icon indicating copy to clipboard operation
dotnet-outdated copied to clipboard

Replace our custom built Nuget communication with the Nuget client libraries

Open flagbug opened this issue 7 years ago • 1 comments

flagbug avatar May 31 '18 18:05 flagbug

Hey @flagbug, I've been working on a NuGet SDK to make interacting with a NuGet server as simple as possible! Would you mind letting me know what you think of the SDK? See this documentation: https://github.com/loic-sharma/BaGet/tree/master/src/BaGet.Protocol#bagetprotocol

Grabbing a list of package versions is as simple as:

NuGetClient client = new NuGetClient("https://api.nuget.org/v3/index.json");

IReadOnlyList<NuGetVersion>> versions = await client.ListPackageVersionsAsync("Newtonsoft.Json", includeUnlisted: false);

foreach (NuGetVersion version in versions)
{
    Console.WriteLine($"Found version: {version}");
}

Please let me know what you think!

loic-sharma avatar Oct 04 '19 01:10 loic-sharma