I'm currently porting a project of mine from x86 to x64. It is a plugin and absolutely must run as an x64, since the host does too.
Part of the application creates a dynamic assembly:
AppDomain.CurrentDomain.DefineDynamicAssembly(...)
And then saves that to the disk. I checked it with dumpbin /headers
, its in x86!
How can I force the assembly to be x64 from code?