AStarDev.VelopackPublishingAvalonia
1.2.1
dotnet add package AStarDev.VelopackPublishingAvalonia --version 1.2.1
NuGet\Install-Package AStarDev.VelopackPublishingAvalonia -Version 1.2.1
<PackageReference Include="AStarDev.VelopackPublishingAvalonia" Version="1.2.1" />
<PackageVersion Include="AStarDev.VelopackPublishingAvalonia" Version="1.2.1" />
<PackageReference Include="AStarDev.VelopackPublishingAvalonia" />
paket add AStarDev.VelopackPublishingAvalonia --version 1.2.1
#r "nuget: AStarDev.VelopackPublishingAvalonia, 1.2.1"
#:package AStarDev.VelopackPublishingAvalonia@1.2.1
#addin nuget:?package=AStarDev.VelopackPublishingAvalonia&version=1.2.1
#tool nuget:?package=AStarDev.VelopackPublishingAvalonia&version=1.2.1
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:
BackgroundPrimaryBrushTextPrimaryBrushTextSecondaryBrushTextTertiaryBrushTextAccentBrushBorderSubtleBrushBorderDefaultBrushStatusErrorBrush
See AStarDev.OneDriveSyncClient/Themes/Light.axaml/Dark.axaml/Hacker.axaml or AStar.Dev.Wallpaper.Scraper/Theming/UpdateDialogPalette.axaml for examples.
| Product | Versions 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. |
-
net10.0
- AStarDev.FunctionalParadigm (>= 0.1.4)
- AStarDev.Localization (>= 0.1.0)
- AStarDev.LoggingExtensions (>= 0.7.2)
- AStarDev.VelopackPublishing (>= 0.1.0)
- Avalonia (>= 12.1.3)
- Azure.Monitor.OpenTelemetry.AspNetCore (>= 1.6.0)
- Azure.Monitor.OpenTelemetry.Exporter (>= 1.10.0)
- CommunityToolkit.Mvvm (>= 8.4.2)
- Microsoft.Extensions.Configuration (>= 10.0.12)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.12)
- Microsoft.Extensions.Configuration.FileExtensions (>= 10.0.12)
- Microsoft.Extensions.Configuration.Json (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Logging (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.12)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.12)
- Microsoft.Identity.Client (>= 4.90.1)
- Microsoft.Identity.Client.Extensions.Msal (>= 4.90.1)
- OpenTelemetry (>= 1.19.1)
- OpenTelemetry.Api (>= 1.19.1)
- OpenTelemetry.Exporter.Console (>= 1.19.1)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.19.1)
- System.Reactive (>= 7.0.0)
- Testably.Abstractions (>= 10.4.0)
- Velopack (>= 1.2.161)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
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