IL2040: Could not find embedded resource specified in a substitution file
Cause
No embedded resource with name matching the value used in the name argument could be
found in the specified assembly.
Rule description
Substitution files are used to instruct the trimmer to replace specific method bodies with either a throw or return constant statements.
The resource name in a substitution file could not be found in the specified assembly. The name of the resource to remove must match the name of an embedded resource in the assembly.
Example
<!-- IL2040: Could not find embedded resource 'NonExistentResource' to remove in assembly 'MyAssembly'. -->
<linker>
<assembly fullname="MyAssembly">
<resource name="NonExistentResource" action="remove"/>
</assembly>
</linker>
Maklum balas
Kirim dan lihat maklum balas untuk