Jb Evain wrote:
You have to modify the method body so that each
references are created in the proper module, using the different
Import methods.
If you want an example, have a look at the sources of il-repack (an
ILMerge clone, which also copies methods while repacking):
http://code.google.com/p/il-repack/
il-repack first copies types to a new assembly created in RAM and then
fixes the various references (to types, fields, etc.) by importing the
references (or pointing to the XyzDefinition, if it was merged).
Simon
--
--
mono-cecil