Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 686 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 686 Bytes

GitHubUpdater

C# REST client for communicating with the GitHub API. Specifically designed for update checks relating to the latest GitHub release of the specified repo.

Initialise an update check like so:

var version = new Version(Application.ProductVersion);
var client = new UpdateClient()
{
    Author = "<Your GitHub Username",
    RepositoryName = "<Your Repo Name>",
    CurrentInstalledVersion = version
};

// Start API call and update check.
// If an update is available, the client will show a form
// with release information from GitHub. Otherwise,
// a simple messagebox is displayed informing the user that
// they are up-to-date.
client.CheckIfLatest();