Is there a free tool capable of trimming unused code from the CLI assembly?

Is there a free tool capable of trimming unused code from the CLI assembly?

I know that there are obfuscators that are able to perform this optimization, but it all costs money. Is there a free (or even open source) tool that removes unused code in an already compiled assembly?

+6
source share
1 answer

There is. He called Mono.Linker .

What I wrote for three years about Mono.Linker is already quite a lot. It works well, but it is not magical and can be quite rude. Plus customization is usually required.

On the other hand, it now comes in commercial tools like MonoTouch or Mono for Android , so it is definitely robust if you don't mind spending some time integrating it.

Please note that all released Mono versions come with a compiled version of the linker, but I advise you to compile it yourself.

+3
source

Source: https://habr.com/ru/post/911107/


All Articles