Abstractions over the Nuget.Protocol package.
First, inject the INugetClient into IoC:
using Microsoft.Extensions.DependencyInjection;
using Tk.Nuget;
collection.AddNugetClient();Given an INugetClient instance, get the latest version of a package:
var vsn = client.GetLatestNugetVersionAsync("Newtonsoft.Json");
// Returns a non-null version if successful, null if not.Given an INugetClient instance, see if the current version has an upgrade:
var vsn = client.GetUpgradeVersionAsync("Newtonsoft.Json", "0.0.1");
// If vsn is non-null, an upgrade version is available.
// If vsn is null, there is no available version.