Hi,

First of all, thank you all for your help. Now I have much more clear
that moving code from one module to another implies importing all
references to the new module.

I have been taking a look at code in IL-Repack tool and it has been
very useful. Now I am able to move the code and fix all the
references.

Best regards,

Jose Antonio

On 14 mayo, 22:12, "[email protected]" <[email protected]> wrote:
> 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

Reply via email to