Skip to content

Remove GetICUVersion from being preserved unconditionally by the ILLinker #39102

@eerhardt

Description

@eerhardt

We have one entry in CoreLib's ILLink.Descriptors.xml that is only used for testing:

<type fullname="Interop/Globalization">
<!-- Internal API used by tests only. -->
<method name="GetICUVersion" />
</type>

We should remove this entry so the method is trimmed when linking an app. See @marek-safar's comment here: #35199 (comment)

Marking it all the time will cause problems for us in InvariantMode when the native part won't be available and we need to statically link it.

One option would be to make a "_LibraryBuild.xml" file for CoreLib and only preserve this method when doing the "library build". The descriptor entry won't be embedded into the assembly, so it won't be picked up when linking the user's application.

@safern @joperezr @layomia

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions