Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Cause
A member on a type is marked for preservation more than once in a descriptor file.
Rule description
Descriptor files are used to instruct the trimmer to always keep certain items in an assembly, regardless of whether the trimmer could find any references to them.
Members in this file should only appear once.
Example
<!-- IL2025: Duplicate preserve of 'method' -->
<linker>
<assembly fullname="MyAssembly">
<type fullname="MyType">
<method name="MyMethod"/>
<method name="MyMethod"/>
</type>
</assembly>
</linker>
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.