Re: [mono-cecil] Code for trimming assemblies crashes with a problem on generics (0.9.4 and 0.9.5)

51 views
Skip to first unread message

Jb Evain

unread,
Aug 14, 2012, 6:30:06 AM8/14/12
to mono-...@googlegroups.com
Hey,

On Mon, Aug 13, 2012 at 4:44 PM, blez <esse...@gmail.com> wrote:
> Any help?

You're probably removing a generic method that is instantiated in a
method you're not removing. Apparently that confuses Cecil greatly.

In the ends, it depends on what you want to achieve. If you want to
delete all the code in an assembly to just have method stubs, it's
quite easy, you simply remove all the instructions of all the methods.

If you want to remove code that is not executed, it's better to use
the Mono.Linker.

Jb
Reply all
Reply to author
Forward
0 new messages