[Mono-osx] Invalid IL code in System.ComponentModel.Composition.Hosting.AssemblyCatalog:.ctor (System.Reflection.Assembly): method body is empty.

zhhzhang zhihao.zhang at ni.com
Tue Feb 21 03:23:13 UTC 2012


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.

--
View this message in context: http://mono.1490590.n4.nabble.com/Invalid-IL-code-in-System-ComponentModel-Composition-Hosting-AssemblyCatalog-ctor-System-Reflection--tp4405879p4405879.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list