(Sadly?) There's no easy way to move one type from a module to
another, as it involves taking a lot of decisions about what to do
with references. Also Mono.Merge is completely dead.
I suggest you look at http://code.google.com/p/il-repack/
Jb
Basically, you can't attach an existing instance (type, method, etc.)
that has already been attached to one assembly to a new assembly. You
have to clone the object instead, (deep-)copying its full state, which
is what we do in il-repack. The cloning methods are *not* part of cecil
itself: like Jb wrote, it involves taking decisions about the references
and we know these decisions in il-repack (where we know which types to
merge and which not to).
Simon
--
--
--
mono-cecil
---
You received this message because you are subscribed to a topic in the Google Groups "mono-cecil" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mono-cecil/Yt9xQedjw54/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mono-cecil+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.