brhmedia.GitHubUpdater
1.7.5.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package brhmedia.GitHubUpdater --version 1.7.5.4
NuGet\Install-Package brhmedia.GitHubUpdater -Version 1.7.5.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="brhmedia.GitHubUpdater" Version="1.7.5.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add brhmedia.GitHubUpdater --version 1.7.5.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: brhmedia.GitHubUpdater, 1.7.5.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install brhmedia.GitHubUpdater as a Cake Addin #addin nuget:?package=brhmedia.GitHubUpdater&version=1.7.5.4 // Install brhmedia.GitHubUpdater as a Cake Tool #tool nuget:?package=brhmedia.GitHubUpdater&version=1.7.5.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.
It is crucial that you tag
your releases with your version number; preferably with v
prepended like so: v1.0.0
.
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,
//this is the default value; see below for more options
Mode = OperationModus.Normal
};
// 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();
You can set Mode
to one of three options:
OperationModus.DebugMode
allows for logging API outputs, enabling the channel selector and always showing theUpdate Available
formOperationModus.ChannelSelector
enables pulling from either onlyPre-release
builds or onlyStable
builds via the use of a selection form; otherwise, the behaviour is the same asNormal
OperationModus.Normal
only pulls from theStable
channel and will only show theUpdate Available
form if a later version is available
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- AltoHttp (>= 1.5.2)
- Markdig (>= 0.38.0)
- Newtonsoft.Json (>= 13.0.3)
- RestSharp (>= 112.1.0)
- System.Buffers (>= 4.6.0)
- System.Memory (>= 4.6.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.0)
- System.Text.Json (>= 9.0.0)
- System.Threading.Tasks.Extensions (>= 4.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release