I startup my wpf application by the following command.
start /MACHINE arm64 MyWpf.exe
I will encounter the error "The Application was Unable to Start Correctly (0xc000007b)". But when I startup it as x86, it works well.
The target framework of my WPF application is 4.8.1 and the target platform is AnyCPU. My OS type is Arm64, version is Windows11 22H2.
I have try change the target platform to ARM64 and the application works well.
But I want to know why I can't build the application as AnyCPU and run it as Arm64. Is it a limit of WPF? And is there any idea to let the application run as ARM64 with building as AnyCPU?