A quick post to let you know that I have my profiler working on all Xna platforms: Windows, WP7 and Xbox 360. Mono Cecil is a tremendous assembly! Once you get used to its API, you're not a developer anymore: you are god! (beware: it doesn't prevent you to be good or evil god :P)
Merci Jean Baptiste :) On Jun 24, 3:20 pm, "Indiefreaks.com" <[email protected]> wrote: > 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- Hide quoted text - > > - Show quoted text - -- -- mono-cecil
