This project has been abandoned by the owner as I do not use GitHub anymore. Feel free to fork and improve it, if you'd like.
If you want to take over the NuGet package, go ahead and contact me at [email protected].
Easy way to check if your C# program is up to date using GitHub Releases
PM> Install-Package GitHubUpdate
var checker = new UpdateChecker("nixxquality", "WebMConverter") // uses your Application.ProductVersion
UpdateType update = await checker.CheckUpdate();
if (update == UpdateType.None)
{
// Up to date!
}
else
{
// Ask the user if he wants to update
// You can use the prebuilt form for this if you want (it's really pretty!)
var result = new UpdateNotifyDialog(checker).ShowDialog();
if (result == DialogResult.Yes)
{
checker.DownloadAsset("Converter.zip"); // opens it in the user's browser
}
}
See also the Sample project included in the repository.