I have a simple HelloWorld.exe application. I run it on x64 machine
and I can see it runs in 64-bit mode.
After applying the following transform HelloWorld.exe runs in 32-bit
mode only even on x64-powered machine:
void SimpleButBuggyCecilTransform()
{
string path = "HelloWorld.exe";
AssemblyDefinition assembly = AssemblyFactory.GetAssembly(path);
AssemblyFactory.SaveAssembly(assembly, path);
}
To check whether HelloWorld.exe runs in 32- or 64-bit mode I use
Windows Task Manager.
It seems there is a bug in Mono.Cecil...
Any suggestions or workarounds are welcome
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---