Frontmatec.UpdateManagement.Windows 0.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Frontmatec.UpdateManagement.Windows --version 0.1.1
                    
NuGet\Install-Package Frontmatec.UpdateManagement.Windows -Version 0.1.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="Frontmatec.UpdateManagement.Windows" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Frontmatec.UpdateManagement.Windows" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Frontmatec.UpdateManagement.Windows" />
                    
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 Frontmatec.UpdateManagement.Windows --version 0.1.1
                    
#r "nuget: Frontmatec.UpdateManagement.Windows, 0.1.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 Frontmatec.UpdateManagement.Windows@0.1.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=Frontmatec.UpdateManagement.Windows&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Frontmatec.UpdateManagement.Windows&version=0.1.1
                    
Install as a Cake Tool

Frontmatec.UpdateManagement.Windows

The update check, question and progress of a WPF app built on Frontmatec.Windows, in English and Danish: once at start, quietly, and from a menu item. The check and the download run off the window's thread, and a check that takes more than 20 seconds is given up.

Use

Register the texts with the update manager:

services.AddUpdateManagement(updates => updates.UseVelopack().AddWindows());

The main window's view model implements IUpdateHost and makes the UpdateViewModel:

Updates = componentFactory.CreateInstance<UpdateViewModel>(this);

and checks once its window shows:

mainWindow.Updates.CheckAtStart();

In the window, the menu item and the status:

<MenuItem Command="{Binding Path=Updates.CheckCommand}" Header="{w:Localize UpdateManagement.CheckForUpdates}" />
<TextBlock Text="{Binding Path=Updates.Status, Mode=OneWay}" />

Texts

Key English
UpdateManagement.CheckForUpdates Check for _Updates...
UpdateManagement.Available Version {0} is available. Update and restart now?
UpdateManagement.UpToDate You have the latest version.
UpdateManagement.Downloading Downloading update, {0}%
UpdateManagement.Restarting Restarting...
UpdateManagement.Failed The update failed: {0} Try again later.
Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 is compatible. 
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
0.3.0 61 10/20/2026
0.2.0 49 10/20/2026
0.1.1 50 10/20/2026
0.1.0 43 10/20/2026