Skip to content

Remove remaining ILLinkTrim.xml from libraries #35199

Closed
@marek-safar

Description

@marek-safar

They still keep unconditionally a lot of BCL code. On simple Xamarin app removing all remaining ILLinkTrim.xml files (except SPC) saves about 60% of the BCL size.

  • ./Microsoft.CSharp/src/ILLinkTrim.xml
  • ./System.Diagnostics.StackTrace/src/ILLinkTrim.xml
  • ./System.Security.Claims/src/ILLinkTrim.xml
  • ./System.ComponentModel.TypeConverter/src/ILLinkTrim.xml
  • ./System.Security.Principal.Windows/src/ILLinkTrim.xml
  • ./System.Private.DataContractSerialization/src/ILLinkTrim.xml
  • ./System.Linq/src/ILLinkTrim.xml
  • ./System.Runtime.InteropServices/src/ILLinkTrim.xml
  • ./System.Private.Xml.Linq/src/ILLinkTrim.xml
  • ./System.Private.Xml/src/ILLinkTrim.xml

It would be also nice to block adding them accidentally back again by not allowing ILLinkTrimXml property for them.

/cc @eerhardt @vitek-karas

Metadata

Metadata

Labels

area-Metalinkable-frameworkIssues associated with delivering a linker friendly framework

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions