Skip to content

Add option to disable localized exception messages#1447

Merged
Sergio0694 merged 3 commits intostaging/AOTfrom
user/sergiopedri/resource-key-switch
Jan 24, 2024
Merged

Add option to disable localized exception messages#1447
Sergio0694 merged 3 commits intostaging/AOTfrom
user/sergiopedri/resource-key-switch

Conversation

@Sergio0694
Copy link
Member

This PR builds on top of #1435 and adds an option to disable localized exception messages, matching what the runtime also does when setting the UseSystemResourceKeys feature switch. The new flag allows trimming all of CsWinRT's embedded resources.

@Sergio0694
Copy link
Member Author

Saves 142 KB on .NET 9!! 🎉

image

Base automatically changed from user/sergiopedri/feature-switches to staging/AOT January 17, 2024 11:50
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/resource-key-switch branch from f860801 to fa42a26 Compare January 17, 2024 11:51
@Sergio0694 Sergio0694 marked this pull request as ready for review January 17, 2024 11:51
@Sergio0694 Sergio0694 merged commit 80c437c into staging/AOT Jan 24, 2024
@Sergio0694 Sergio0694 deleted the user/sergiopedri/resource-key-switch branch January 24, 2024 19:46
Sergio0694 added a commit that referenced this pull request Jan 24, 2024
* Update WinRTRuntimeErrorStrings to be handwritten

* Add FeatureSwitches.UseExceptionResourceKeys

* Trim localized resources from ILLink.Substitutions.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants