Skip to content
tonycknightPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

103 Commits

Folders and files

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages