Ah, ok, thanks. On Tue, Mar 3, 2009 at 2:48 PM, Leszek Ciesielski <[email protected]> wrote:
> > On Tue, Mar 3, 2009 at 2:07 PM, Mark de Bruijn <[email protected]> wrote: > > Processor architecture? Isn't CIL platform independent? And Cecil doesn't > > read unmanaged assemblies. > > > > On Tue, Mar 3, 2009 at 12:55 PM, Jonathon Rossi <[email protected]> > wrote: > >> > >> Hi, > >> > >> Does Cecil expose a property that tells you the processor architecture > of > >> the assembly like the one in System.Reflection? I looked right through > the > >> library but couldn't find any reference to it having this functionality. > >> > >> If it doesn't exist, would the code to read this belong in ImageReader > to > >> read from the CIL header? > >> > > CIL is not truly platform independent when you use P/Invoke. > Assemblies can be marked e.g. as x86, then MS.Net would launch them in > x86 mode even when running on x86_64 system, thus P/Invokes into 32bit > libraries would work. Mono ignores this attribute. > > > > -- Mark --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
