dotnet-outdated
dotnet-outdated copied to clipboard
Replace our custom built Nuget communication with the Nuget client libraries
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!