IL2102:程序集中找到的“Reflection.AssemblyMetadataAttribute”属性无效。 值必须是 True

原因

可以在程序集级别使用 AssemblyMetadataAttribute 来为程序集启用剪裁。 属性包含不支持的值。 唯一支持的值为 True

示例

<!-- IL2102: Embedded XML in assembly 'ContainingAssembly' contains assembly "fullname" attribute for another assembly 'OtherAssembly' -->
<linker>
  <assembly fullname="OtherAssembly">
    <type fullname="MyType" />
  </assembly>
</linker>