IL2038: Missing name argument on a resource element in a substitution file

Cause

A resource element in a substitution file does not specify the required name argument.

Rule description

Substitution files are used to instruct the trimmer to replace specific method bodies with either a throw or return constant statements.

All resource elements in a substitution file must have the required name argument specifying the resource to remove.

Example

<!-- IL2038: Missing 'name' attribute for resource. -->
<linker>
  <assembly fullname="MyAssembly">
    <resource />
  </assembly>
</linker>