Blaklisting micro mscorlib

Hi, I finally have my unity game running with stripping level: byte codes, after adding the link.xml file in order to blacklist some stuff that I don’t want them to be stripped.

Now I’m trying to move to micro mscorlib stripping level, but I’m using System.Types.GetGenericArguments() and it seems that it does not comes with micro mscorlib. Anyway, I saw that there are some post where the developers are adding the mscorlib to the link file to preserve some stuffs … for example I could add something like this:

<assembly fullname="mscorlib">
      <type fullname="System.Type">
          <method name="GetGenericArguments"/>
      </type>
  </assembly>

This is not working, and it has sense to me, because for what I know, micro mscorlib is already compiled, and it is not stripped at build time.

So, is that correct? or there is some way keep stuffs in micro mscorlib?

Thanks in advance, and sorry my english :frowning:

micro mscorlib is built omitting most of the stuff that Unity Engine does not need to run and unfortunately you can’t add it back. That’s the price for having smallest footprint of working subset of .NET.

Yeah, I supposed that … so I think I won’t be able to use micro mscorlib…

Anyway… I saw in some places that you don’t get that much going from stripping level 2 to 3… I don’t know if it worth the effort of trying to find a solution to this (Even when i really belive there is not one).

Thanks for your quick answer