IL2030: Could not resolve an assembly specified in a custom attribute annotations file

Cause

Could not resolve assembly from the assembly argument of an attribute element in a custom attribute annotations file.

Rule description

Custom attribute annotation files are used to instruct the trimmer to behave as if the specified item has a given attribute. Attribute annotations can only be used to add attributes which have effect on the trimmer behavior, all other attributes will be ignored. Attributes added via attribute annotations only influence the trimmer behavior and they are never added to the output assembly.

The value of the assembly argument in a attribute element does not match any of the assemblies seen by the trimmer.

Example

<!-- IL2030: Could not resolve assembly 'NonExistentAssembly' for attribute 'MyAttribute' -->
<linker>
  <assembly fullname="MyAssembly">
    <attribute fullname="MyAttribute" assembly="NonExistentAssembly"/>
  </assembly>
</linker>