Published WinUI 3 applications need to be signed with a certificate that's trusted on the local machine. Right click project in solution explorer > Publish and Package > Create App Packages. Make sure to create a certificate and trust it on that machine otherwise the app will not run.