-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-System.Globalizationsize-reductionIssues impacting final app size primary for size sensitive workloadsIssues impacting final app size primary for size sensitive workloads
Milestone
Description
We have one entry in CoreLib's ILLink.Descriptors.xml that is only used for testing:
runtime/src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.Shared.xml
Lines 3 to 6 in b779870
<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.
Metadata
Metadata
Assignees
Labels
area-System.Globalizationsize-reductionIssues impacting final app size primary for size sensitive workloadsIssues impacting final app size primary for size sensitive workloads