This is the smallest solution i could write, it has only two assemblies and
one nunit test in one of them. Build all the solution before running the
test.
http://dl.dropbox.com/u/1525624/MonoCecilTest.7z

Thank you

2011/1/21 Jb Evain <[email protected]>

> Hi,
>
> On Fri, Jan 21, 2011 at 12:33 PM, José F. Romaniello
> <[email protected]> wrote:
> > PeVerify fails with this message:
> >
> [MD]: Error: Signature contains long form (such as ELEMENT_TYPE_CLASS<token 
> of System.String>). [token:0x1B000002]
> > If i use a class defined in the same assembly instead "int", everything
> > works ok.
>
> Please provide a runnable small reproducible solution.
>
> > One of the things i noticed, is that when i read genericArgument is
> > "System.Int32" but the Module property is "MyAssembly.dll",
> > is that ok? should not be something like "mscorlib" or
> > CommonLanguageRuntimeLibrary...
>
> It is normal. The TypeReference for System.Int32 is from
> MyAssembly.dll. You can access its .Scope to know where it is actually
> defined (in that case, the mscorlib).
>
> Jb
>
> --
> --
> mono-cecil

-- 
--
mono-cecil

Reply via email to