IL2013: Substituted fields must be static or constant

Cause

A field specified for substitution in a substitution file is non-static or constant.

Rule description

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

Trimmer cannot substitute non-static or constant fields.

Example

<!-- IL2013: Substituted field 'MyType.InstanceField' needs to be static field -->
<linker>
  <assembly fullname="MyAssembly">
    <type fullname="MyType">
      <field name="InstanceField" value="5" />
    </type>
  </assembly>
</linker>