[Mono-osx] Invalid IL code in System.ComponentModel.Composition.Hosting.AssemblyCatalog:.ctor (System.Reflection.Assembly): method body is empty.
Michael Hutchinson
m.j.hutchinson at gmail.com
Mon Feb 27 22:01:52 UTC 2012
On 20 February 2012 22:23, zhhzhang <zhihao.zhang at ni.com> wrote:
> My MonoDevelop version is 2.8.6.5 and runtime version is 2.10.8. I want to
> use MEF in my project, so System.ComponentModel.Composition is referenced.
> An exception is thrown in below code:
>
> AssemblyCatalog catalog = new AssemblyCatalog(typeof(Session).Assembly);
>
> And the content of exception is:
>
> Invalid IL code in
> System.ComponentModel.Composition.Hosting.AssemblyCatalog:.ctor
> (System.Reflection.Assembly): method body is empty.
>
> What's problem with my code? Or is it a bug in MonoDevelop? Thanks in
> advance.
What kind of application? Are you using the linker?
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Mono-osx
mailing list