我有一个解决方案,其中包含一个 C# 项目“库”和一个项目“JavaScript”,编译后它会生成一个 .winmd 文件,该文件被带到另一个项目。但是这个项目是建立在 x86 上的,我需要为 x64 编译,以运行应用程序,以便 x64 得到以下错误:
'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/2.0)'.
Unhandled exception at line 25, column 13 in ms-appx://2c341884-5957-41b1-bb32-10e13dd434ba/js/default.js
0x8007000b - JavaScript runtime error: An attempt was made to load a program with an incorrect format.
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at System.Runtime.InteropServices.WindowsRuntime.ManagedActivationFactory.ActivateInstance()
WinRT information: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at System.Runtime.InteropServices.WindowsRuntime.ManagedActivationFactory.ActivateInstance()
The program '[5776] WWAHost.exe' has exited with code -1 (0xffffffff).