IL2054: Invalid argument value in custom attribute annotations file

Cause

Value used in an argument element in a custom attribute annotations file does not match the type of the attribute's constructor arguments.

Example

<!-- IL2054: Invalid argument value 'NonExistentEnumValue' for parameter of type 'MyEnumType' of attribute 'AttributeWithEnumParameterAttribute' -->
<linker>
  <assembly fullname="MyAssembly">
    <type fullname="MyType">
      <attribute fullname="AttributeWithEnumParameterAttribute">
        <argument>NonExistentEnumValue</argument>
      </attribute>
    </type>
  </assembly>
</linker>