Hi Michael, On Tue, Jan 5, 2010 at 8:14 AM, Michael Kohout <[email protected]> wrote: > at Mono.Cecil.ModuleDefinition.Inject(TypeDefinition type) > at <StartupCode$FSI_0003>.$FSI_0003.main@() in C:\Users\Michael > Kohout\Documents\CecilCompiler\CecilCompiler\Script.fsx:line 22
Don't call Inject to add a type to an assembly. Just add it to the .Types collection on the module. Inject was meant to inject a type from an assembly to another, but it's too simplistic to be used in real cases. -- Jb Evain <[email protected]>
-- -- mono-cecil
