Skip to content

tonycknight/TK.Nuget

Repository files navigation

TK.Nuget

Build & Release

Abstractions over the Nuget.Protocol package.

How to use

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages