Sphere10.Framework.Windows.Store
3.2.0
dotnet add package Sphere10.Framework.Windows.Store --version 3.2.0
NuGet\Install-Package Sphere10.Framework.Windows.Store -Version 3.2.0
<PackageReference Include="Sphere10.Framework.Windows.Store" Version="3.2.0" />
<PackageVersion Include="Sphere10.Framework.Windows.Store" Version="3.2.0" />
<PackageReference Include="Sphere10.Framework.Windows.Store" />
paket add Sphere10.Framework.Windows.Store --version 3.2.0
#r "nuget: Sphere10.Framework.Windows.Store, 3.2.0"
#:package Sphere10.Framework.Windows.Store@3.2.0
#addin nuget:?package=Sphere10.Framework.Windows.Store&version=3.2.0
#tool nuget:?package=Sphere10.Framework.Windows.Store&version=3.2.0
Sphere10.Framework.Windows.Store
Windows Store distribution support: the product updater of an application distributed through the Microsoft Store. A Store build references this library and adds its module; every other build leaves it out and keeps the release server's updater.
The library targets a Windows SDK version (net8.0-windows10.0.19041.0, net9.0-windows10.0.19041.0 and net10.0-windows10.0.19041.0, and net11.0-windows10.0.19041.0 when the SDK supports .NET 11), whose target framework supplies the Windows Runtime projection. It references only the Application library and the core.
The Store updater
WindowsStoreProductUpdater is a ProductUpdaterBase (see the Application library's updates).
- A check asks the Store for the package updates of the application and its optional packages (
StoreContext.GetAppAndOptionalStorePackageUpdatesAsync). It answers aWindowsStoreProductUpdatewhose version is that of the application's own package (or the highest optional package's when only those are offered), which is mandatory when any package update is, and which has no release notes, because the Store publishes none to the application. - An installation hands the package updates to the Store (
RequestDownloadAndInstallStorePackageUpdatesAsync). The Store shows its own consent, downloads, closes the application and starts it again. The Store's context is initialised with the window of the update notice (IInitializeWithWindow), as a desktop application must for the Store's dialogs to show, or with the process's main window when none is given. The installation answersCompletedwhen the Store installed the update,Declinedwhen the user cancelled in the Store's dialog, and fails with the Store's reason (low battery, Wi-Fi recommended or required, another error) otherwise. The packages' statuses are summed into one progress: waiting, downloading with the bytes of every package, then installing. - A check never fails because the Store cannot offer updates. When the process has no package identity (an unpackaged or development run) or the Store refuses the request (a package not installed from the Store), it answers no update and logs why.
The WinForms notice and presenter work unchanged with this updater: the notice shows the version with Download And Install and Later, hides the release notes and download link it does not have, shows the Store's progress, and closes when the Store has installed the update. No exit is requested, because the Store restarts the application itself.
The Store is reached only through the protected virtual GetPackageFamilyName, GetStorePackageUpdatesAsync and RequestDownloadAndInstallAsync, so a subclass can run the updater's decisions without the Store, as the test project does.
Selecting the Store updater at build time
ModuleConfiguration replaces the registered ProductUpdaterBase, including the release server's that UseProductUpdates registers, with WindowsStoreProductUpdater. A product selects it with an MSBuild property, so a Store build is compiled with the Store updater and every other build is unchanged:
<PropertyGroup Condition="'$(Distribution)' == 'WindowsStore'">
<TargetFramework>net10.0-windows10.0.19041.0</TargetFramework>
<DefineConstants>$(DefineConstants);WINDOWS_STORE</DefineConstants>
</PropertyGroup>
<ItemGroup Condition="'$(Distribution)' == 'WindowsStore'">
<PackageReference Include="Sphere10.Framework.Windows.Store" />
</ItemGroup>
A product that references Framework source uses a ProjectReference to this project instead, and one that targets several frameworks sets TargetFrameworks (the Framework's own projects use $(FrameworkWindowsStoreTargetFrameworks)). The composition adds the module in the Store build only:
Sphere10Framework.Instance
.BuildWinFormsApplication()
.AddModule<Sphere10.Framework.Application.ModuleConfiguration>()
.AddModule<Sphere10.Framework.Windows.Forms.ModuleConfiguration>()
#if WINDOWS_STORE
.AddModule<Sphere10.Framework.Windows.Store.ModuleConfiguration>()
#endif
.UseMainForm<MainWindow>()
.UseProductUpdates()
.StartWinFormsApplication();
The WinForms tester uses this switch: dotnet build utils/Sphere10.Framework.Utils.WinFormsTester -p:Distribution=WindowsStore builds it with the Store updater.
A Store update can be exercised only by a package the Store published and installed. A development run, a sideloaded package and the tests reach the "not available" answer instead.
Contents
| Type | Kind | Purpose |
|---|---|---|
ModuleConfiguration |
class | The Store distribution's module, which replaces the application's ProductUpdaterBase with WindowsStoreProductUpdater |
StorePackageUpdateInfo |
record | One package update the Store offered: package family, version, mandatory flag and the Store's own update object |
WindowsStoreProductUpdate |
class | The Store's update: version, mandatory flag and the package updates to install, without release notes |
WindowsStoreProductUpdater |
class | The updater that asks the Store for package updates and hands their installation to the Store |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows10.0.19041 is compatible. net9.0-windows was computed. net9.0-windows10.0.19041 is compatible. net10.0-windows was computed. net10.0-windows10.0.19041 is compatible. net11.0-windows10.0.19041 is compatible. |
-
net10.0-windows10.0.19041
- Sphere10.Framework (>= 3.2.0)
- Sphere10.Framework.Application (>= 3.2.0)
-
net11.0-windows10.0.19041
- Sphere10.Framework (>= 3.2.0)
- Sphere10.Framework.Application (>= 3.2.0)
-
net8.0-windows10.0.19041
- Sphere10.Framework (>= 3.2.0)
- Sphere10.Framework.Application (>= 3.2.0)
-
net9.0-windows10.0.19041
- Sphere10.Framework (>= 3.2.0)
- Sphere10.Framework.Application (>= 3.2.0)
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 |
|---|---|---|
| 3.2.0 | 0 | 11/24/2026 |
| 3.2.0-ci.173.45375449609.1 | 0 | 11/24/2026 |
| 3.2.0-ci.171.45374063975.1 | 0 | 11/24/2026 |
| 3.2.0-ci.169.45350717665.1 | 0 | 11/24/2026 |
| 3.2.0-ci.168.45166918016.1 | 43 | 11/23/2026 |