Replies: 2 comments
Setup-Script: Create blank WinUi 3 project solution:Build.yml |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
WinAppSDK Runtime Issue on Windows 26300 + Visual Studio 2026 Preview
This project failed to start with:
System.Runtime.InteropServices.COMException
Class not registered (0x80040154 — REGDB_E_CLASSNOTREG)
The error occurred before any WinUI code executed, during:
Microsoft.UI.Xaml.Application.Start(...)
Root Cause
Windows Insider build 26300 and Visual Studio 2026 Preview ship with Windows App SDK Runtime 1.8 preinstalled. This environment blocks installation of older WinAppSDK runtimes (1.6, 1.7) via MSIX or Add‑AppxPackage:
0x80073D06 — A higher version of this package is already installed.
As a result:
WinAppSDK 1.6 cannot be installed
DDLM / Main / Singleton packages for 1.6 cannot be deployed
The project still references Microsoft.WindowsAppSDK 1.6.x
WinUI tries to activate the 1.6 runtime
Windows only exposes 1.8
→ ActivationFactory fails
→ REGDB_E_CLASSNOTREG
This is a version mismatch, not a project bug.
Why Add‑AppxPackage Fails
Windows 26300 already contains:
Microsoft.WindowsAppRuntime.1.8 (x64 + x86)
Microsoft.WindowsAppRuntime.CBS.1.8
Microsoft.WindowsAppRuntime.1.7
Microsoft.WindowsAppRuntime.1.6 (Store variant, not Redist)
No DDLM / Main / Singleton packages for 1.6
When attempting to install the Redist 1.6 packages:
A higher version of this package is already installed.
Windows Insider builds do not allow downgrading WinAppSDK frameworks.
Solution
Upgrade the project to WinAppSDK 1.8
In your .csproj:
Then:
Clean the solution
Rebuild
Run
The app will now use the system‑installed 1.8 runtime, which is fully compatible with Windows 26300 and VS 2026 Preview.
Notes for Other Developers
Windows Insider builds may ship newer WinAppSDK runtimes ahead of NuGet defaults.
These builds block installation of older MSIX runtime packages.
If your WinUI 3 app suddenly fails with REGDB_E_CLASSNOTREG on startup, check:
Get-AppxPackage WindowsAppRuntime
If the system has a newer runtime than your project references → upgrade your NuGet package.
All reactions