Thanks, I got it working for Windows assemblies... Now to see if I can achieve it with WP7 and Xbox 360's ;)
I'll keep you posted. On Jun 24, 2:40 pm, Jb Evain <[email protected]> wrote: > Hi, > > On Fri, Jun 24, 2011 at 1:28 PM, Indiefreaks.com > > <[email protected]> wrote: > > What should I do to get proper Cecil TypeDefinition, method and field > > correctly created? > > That doesn't make sense a lot :) Either you create references yourself > for your module, or you create references from an existing definition > loaded from another module. > > Nothing prevents you to load your AOP library and the microsoft xna > mscorlib.dll with Cecil, retrieve the definitions there, and create > the proper references for your module. > > Also for primitive types, you can use: > > myModule.TypeSystem.Object > > to get a reference to System.Object properly scoped for myModule. > > Jb -- -- mono-cecil
