Hi Justin, Hm, I'm not aware of any code that goes that way.
I have a branch in Mono.Reflection that does a conversion from a System.Reflection.Assembly to Cecil, but not the other way around. It would be a nifty addition though. Jb On Thu, Jun 13, 2013 at 8:14 AM, Justin Chase <[email protected]> wrote: > I would like to essentially do this: > > var assemblyDefinition = > AssemblyDefinition.ReadAssembly("example.dll"); > var dynamicAssembly = assemblyDefinition.DefineDynamicAssembly( > new AssemblyName("example"), > AssemblyBuilderAccess.RunAndCollect); > return dynamicAssembly.GetType("foo"); > > Hopefully it's clear with that snippet but basically I'm wanting to > convert a Cecil.AssemblyDefinition into a Emit.AssemblyBuilder. The > goal of course would be to load assemblies off of disk as collectible > assemblies. You can do this with CCI but the api is pretty verbose and > it requires a lot of assembly references. > > I could probably do this myself but I'm wondering if the functionality > exists today so I don't have to recreate the wheel :) > > -- > -- > -- > mono-cecil > --- > You received this message because you are subscribed to the Google Groups > "mono-cecil" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
