Search code examples
c#.netwinforms.net-6.0microsoft-store

WinForms application (.NET 6) always run as 32-bit in Microsoft Store


I've released a WinForms application in the Microsoft Store, but it only runs as 32-bit on a 64-bit Windows 11 OS. The application is developed using .NET 6 (C#) and compiled as "Any CPU". Is there a limitation in the "Desktop Bridge" msix files that only allows 32-bit?

The task manager displays the following: Task Manager

I've tried to change settings in the solution- and project files, but no change.


Solution

  • After various attempts I see that "Any CPU" always defaults to 32-bit. The only solution is to build a msix package combining x86, 64 and ARM64. Neutral (Any CPU) should never be selected.

    MSIX package