https://bugs.winehq.org/show_bug.cgi?id=45864
--- Comment #1 from Aaron Simmons paleozogt@gmail.com --- I added
Console.WriteLine("Environment.Is64BitProcess " + Environment.Is64BitProcess);
to HelloWorld.cs.
And now I see:
$ echo $WINEARCH win64 $ wine64 cmd Microsoft Windows 10.0.10240 (3.0.2)
HelloWorld.exe
002e:err:mscoree:LoadLibraryShim error reading registry key for installroot Environment.Is64BitProcess False
Unhandled Exception: System.DllNotFoundException: HelloWorld at (wrapper managed-to-native) HelloWorld.Hello:helloWorld () at HelloWorld.Hello.Main () [0x0001b] in <a9c299cdfe4f4d858cb60436a47e9150>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: HelloWorld at (wrapper managed-to-native) HelloWorld.Hello:helloWorld () at HelloWorld.Hello.Main () [0x0001b] in <a9c299cdfe4f4d858cb60436a47e9150>:0
It seems that, indeed, Wine Mono is running as a 32-bit process, even with a 64-bit WINEARCH. How can we make Wine Mono run in a 64-bit process?