Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Wildcards

Kalle Jillheden edited this page Jan 10, 2021 · 1 revision

UnityLinker supports wildcards (*) on the fullname attribute.

The wildcard character, *, means "match any number of any characters (including 0 length)"

Example usages:

<linker>
    <!-- will match any assembly starting with "Newtonsoft."
      for exampleL
        Newtonsoft.Json
        Newtonsoft.Json.Tests
        Newtonsoft.Bson
        Newtonsoft.Dson
    -->
    <assembly fullname="Newtonsoft.*" />

    <assembly fullname="Newtonsoft.Json">
        <!-- will match any type inside Newtonsoft.Json.Serialization
          ending with "NamingStrategy" 
          for example:
            Newtonsoft.Json.Serialization.SnakeCaseNamingStrategy,
            Newtonsoft.Json.Serialization.CamelCaseNamingStrategy
            Newtonsoft.Json.Serialization.KebabCaseNamingStrategy
        -->
        <type fullname="Newtonsoft.Json.Serialization.*NamingStrategy" />

    </assembly>

    <assembly fullname="MyAssembly">
        <!-- will match all anonymous types inside the assembly MyAssembly -->
        <type fullname="&lt;&gt;f_AnonymousType*" />
    </assembly>
</linker>