Hi Hagai Vinik ,
Looks like the issue isn’t with your code but with the Windows App Runtime version that your unpackaged app depends on.
The error dialog in your screenshot (“requires Windows App Runtime Version 1.5 (MSIX package ≥ 5001.58.448.0)”) means the runtime MSIX package for that version/architecture isn’t properly registered or doesn’t match your app’s bitness. Having the NuGet reference alone isn’t enough, the corresponding MSIX runtime must also be installed and match the app architecture.
My recommendation:
- Check your app’s architecture (x64 or x86).
- Run winget list "Windows App Runtime" and confirm you have the same version and bitness installed (for example, x64 runtime if the app is x64).
- If not, uninstall all existing Windows App Runtime MSIX packages for that version, then reinstall the correct one from Microsoft’s official source:
https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads-archive
- After reinstalling, restart Windows and run the app again.
If the dialog still appears, check Event Viewer → Windows Logs → Application for entries mentioning WinAppRuntime to confirm which version or architecture it’s trying to load.
Hope this helps!