AStarDev.VelopackPublishingAvalonia 1.2.1

dotnet add package AStarDev.VelopackPublishingAvalonia --version 1.2.1
                    
NuGet\Install-Package AStarDev.VelopackPublishingAvalonia -Version 1.2.1
                    
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="AStarDev.VelopackPublishingAvalonia" Version="1.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AStarDev.VelopackPublishingAvalonia" Version="1.2.1" />
                    
Directory.Packages.props
<PackageReference Include="AStarDev.VelopackPublishingAvalonia" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AStarDev.VelopackPublishingAvalonia --version 1.2.1
                    
#r "nuget: AStarDev.VelopackPublishingAvalonia, 1.2.1"
                    
#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.
#:package AStarDev.VelopackPublishingAvalonia@1.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AStarDev.VelopackPublishingAvalonia&version=1.2.1
                    
Install as a Cake Addin
#tool nuget:?package=AStarDev.VelopackPublishingAvalonia&version=1.2.1
                    
Install as a Cake Tool

AStar.Dev.Velopack.Publishing.Avalonia

Shared Avalonia update-available dialog, view model, and notification services used by AStar Development desktop apps, built on top of AStar.Dev.Velopack.Publishing.

Usage

services.AddVelopackUpdates(configuration);
services.AddVelopackUpdateNotifications();
services.AddSingleton<IUpdateDialogTextProvider, MyUpdateDialogTextProvider>();

AddVelopackUpdateNotifications registers IUpdateAvailableDialogService, IUpdateAvailableViewModelFactory, and IUpdateNotificationService. Callers must separately register an IUpdateDialogTextProvider implementation supplying the dialog's display text (title, release-notes label, button labels, downloading label, and the versioned message), decoupled from any specific localisation mechanism.

Call IUpdateNotificationService.CheckAndNotifyAsync() once the main window is available. If an update is found, the shared UpdateAvailableView dialog is shown with title/version/release notes, a visible downloading state, and a themed Restart-now/Later flow.

The dialog follows the host app's own theme. It only defines non-theme-dependent constants locally (FontSizeSm, FontSizeXl, RadiusMd); colours resolve via DynamicResource up to the host app's Application-scope resources, so the host app must define these 8 keys, ideally as a ResourceDictionary.ThemeDictionaries with Light/Dark entries so they follow ThemeVariant automatically:

  • BackgroundPrimaryBrush
  • TextPrimaryBrush
  • TextSecondaryBrush
  • TextTertiaryBrush
  • TextAccentBrush
  • BorderSubtleBrush
  • BorderDefaultBrush
  • StatusErrorBrush

See AStarDev.OneDriveSyncClient/Themes/Light.axaml/Dark.axaml/Hacker.axaml or AStar.Dev.Wallpaper.Scraper/Theming/UpdateDialogPalette.axaml for examples.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.1 97 11/18/2026
0.1.0 201 10/15/2026

v1.2.1 fix(sonar): pass CancellationToken and fix new-code issues (#1938)
       v1.2.0 feat(velopack,cloudsync): scheduled update check, deferral store and forced update (#1681)
       v1.1.0 feat(velopack,cloudsync): update apply gate, so an update waits for running syncs (#1679, #1680)
       v1.0.0 fix(logging)!: log exception type names only, remove exception-taking templates (#1371)
       v0.3.1 fix(logging): log exception type names only, never messages or instances (#1371)
       v0.3.0 feat(localization): extract localisation service into AStarDev.Localization package
       v0.3.0 feat(velopack-publishing): localized update dialog text provider backed by AStarDev.Localization
       v0.2.0 feat(velopack-publishing): expose update check outcome
       v0.1.0 feat(velopack): show download percentage and MB progress in the update dialog