NetSparkle is a C#, cross-platform, highly-configurable software update framework with pre-built UI for .NET developers compatible with .NET 4.6.2/.NET 6+, WinF
NetSparkle is a C#, cross-platform, highly-configurable software update framework with pre-built UI for .NET developers compatible with .NET 4.6.2/.NET 6+, WinF
NetSparkle is a highly-configurable software update framework for C# that is compatible with .NET 6+ and .NET Framework 4.6.2+, has pre-built UIs for .NET Framework (WinForms, WPF) and .NET 6+ (WinForms, WPF, Avalonia), uses Ed25519 or other cryptographic signatures, and even allows for custom UIs or no built-in UI at all! You provide, somewhere on the internet, an app cast with update and version information, along with release notes in Markdown or HTML format. This library then helps you check for an update, show the user the release notes, and offer to download/install the new version of the software.
Built-in supported update download types:
Please see UPGRADING.md for information on major version changes, updates, etc.
NetSparkle is available via NuGet. To choose a NuGet package to use:
NetSparkleUpdater.SparkleUpdater package if you don't care about having a built-in UI and can manage things yourself| Package | Use Case | Release | Preview | Downloads |
|---|---|---|---|---|
| NetSparkleUpdater.SparkleUpdater | Core package; Use a 100% custom UI or no UI (nothing built-in) | |||
| WinForms UI (.NET Framework) | NetSparkle with built-in WinForms UI | |||
| WinForms UI (.NET 6+) | NetSparkle with built-in WinForms UI | |||
| WPF UI (.NET Framework and .NET 6+) | NetSparkle with built-in WPF UI | |||
| Avalonia UI | NetSparkle with built-in Avalonia UI | |||
| App Cast Generator Tool | netsparkle-generate-appcast CLI tool (incl. Ed25519 helpers) |
|||
| DSA Helper Tool | netsparkle-dsa CLI tool (DSA helpers) |
Quick info for tool installations:
dotnet tool install --global NetSparkleUpdater.Tools.AppCastGenerator; available as netsparkle-generate-appcast on your command line after installationdotnet tool install --global NetSparkleUpdater.Tools.DSAHelper; available as netsparkle-dsa on your command line after installationA typical software update path for a stereotypical piece of software might look like this:
dotnet publish)Right now, NetSparkleUpdater does not help you with 1., 2., or 4. "Why not?", you might ask:
sudo for whatever reason, there is an example of doing that in the macOS Avalonia sample.To create your app cast file, see the app cast section of this document.
We are open to contributions that could make the overall install/update process easier for the user. For example, adding upload functionality from the app cast generator to an FTP or GitHub release or similar might be a useful feature for some users. Please file an issue first with your idea before starting work so we can talk about it.
Please look at the sample projects in this repository for basic, runnable usage samples!! There are samples on using each of the built-in UIs as well as a "do it yourself in your own UI" sample!
dotnet tool install --global NetSparkleUpdater.Tools.AppCastGeneratornetsparkle-generate-appcast --generate-keys
# By default, your Ed25519 signatures are stored on disk in your local
# application data folder in a subdirectory called `netsparkle`.
# If you want to export your keys to the console, you can do:
netsparkle-generate-appcast --exportMainWindow or main form or similar:…InnoSetup (Windows), a DMG file (Linux), a .tar.gz file (Linux), or similar. More information in the how updates work section.netsparkle-generate-appcast --help for options): netsparkle-generate-appcast -b binary/folder -p change/log/folder -u https://example.com/downloads -l https://example.com/downloads/changelogs.signature or similar files) to the appropriate locations on your serverSparkleUpdater.LogWriter to see if there is any helpful debug information showing up on the console!In your project file, make sure you set up a few things so that the library can read in the pertinent details later. Note: You can use your own IAssemblyAccessor to load version information from somewhere else. However, setting things up in your project file is easy, and NetSparkleUpdater can read that in natively!
1.0.2-beta1
1.0.2
My Best App
My app is cool (not required)
My Company Name (required unless you set the IAssemblyAccessor save path yourself)
My Product (required unless you set the IAssemblyAccessor save path yourself; set to product name e.g. MyBestApp)
2025 MyCompanyName
IMPORTANT NOTE: In .NET 8+, a change was made in the core of .NET that causes your git/source code commit hash to be included in your app's number. This behavior cannot be avoided by NetSparkleUpdater at this time as we rely on `AssemblyInformationalVersionAttribute`, and this attribute's behavior was changed. Your users may be told that they are currently running `1.0.0+commitHashHere` by NetSparkleUpdater (and your native app itself!). We also recommend adding the following lines to your project file (in a new or an existing one):
falseNo open issues yet, or sync has not completed.