Mono.Cecil does not support mixed mode assemblies as of date, and even though it can read the .NET portion of such assemblies, it does not write such assemblies back to disk. What does it take to support a read->write roundtrip for mixed mode assemblies? (without making any changes to the x86/x64 assembly)
Please note I only need to work with .NET metadata and CIL, not the actualy x86/x64 assembly itself. I only need to modify some .NET classes within a mixed-mode assembly, therefore, I need to load it into objects using Cecil, make my changes, and then save it back, leaving the x86/x64 assembly code unmodified.
I'm assuming the x86/x64 assembly would be stored in a chunk, which could be simply read into a bytearray during parsing, and outputted back into the generated EXE when saving the assembly. Is it so simple?
From the FAQ:
Cecil can read mixed mode assemblies, but writing mixed mode assemblies is not supported