unity3d中Link文件的含义

来源:互联网 发布:电视猫软件 编辑:程序博客网 时间:2024/04/29 05:34
  1. Okay, a little help for those searching for some instructions on how this works. This is based on trial and error.

    "type" can be either a class name (with full namespace) or just a namespace and every class within that namespace will be excluded.
    Child namespaces will not be excluded just by adding the parent namespace. In order to exclude namespaces recursively, use *


  2. <linker>
  3.    <assembly fullname="MyAssemblyName"> // the name of the assembly
  4.        <type fullname="MyNamespace" preserve="all"/> // excludes all classes that are direct children of MyNamespace
  5.        <type fullname="MyNamespace.*" preserve="all"/> // excludes all namespaces and classes recursively under MyNamespace
  6.        <type fullname="MyNamespace*" preserve="all"/> // excludes all namespaces and classes recursively under MyNamespace. Would also exclude the namespace MyNamespaceABC
  7.        <type fullname="My*" preserve="all"/> // excludes all namespaces and classes that start with My and all children of those namespaces
  8.        <type fullname="*" preserve="all"/> // excludes all namespaces and classes in the assembly
  9.    </assembly>
  10. </linker>

原文链接:http://forum.unity3d.com/threads/i-have-a-problem-with-link-xml.181099/
0 0