Mono.Cecil and Type Forwarding

Just a quick note to help those that may be searching for the ability to use Mono.Cecil to create an assembly that forwards types to another assembly. I after trying several different ways to call the library to do what I wanted, I decided it was time to dive into the source and see what was going on. Well the answer to my frustrations was found after much searching. Take a peek at the source for Mono.Cecil.ReflectionWriter and search for TODO. You will find the VisitExternType method. It contains nothing but the comment, TODO. Oh, and the method is never called, so good luck trying to figure out how it is supposed to work.

I am going to try to get this to work with Microsoft’s CCI instead. I will report my findings in another post.


2 Responses to “Mono.Cecil and Type Forwarding”

  1. Jb Evain says:

    For what it’s worth, this is fixed in Mono.Cecil 0.9 :)

  2. vaderpi says:

    Awesome! Thanks for the update. I’ll have to try it out.

Leave a Reply