Skip to content

Conversation

@Sergio0694
Copy link
Member

This PR adds the new "CsWinRTEnableManifestFreeActivation" feature switch (enabled by default), which allows disabling the manifest-free fallback path for WinRT activation. When disabled, all fallback code will be removed, and trying to activate a type that is not registered will throw NotSupportedException. This can be useful to:

  • Trim more code when manifest free is not needed
  • Make it easy to identify ACIDs that are unintentionally missing from the APPX manifest

Ideally, packaged apps should strive to be able to run with this feature switch disabled, for best performance.

@Sergio0694 Sergio0694 added performance Related to performance work trimming labels Dec 13, 2024
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/manifest-free-switch branch 3 times, most recently from 9fa2dc2 to 0c1656c Compare December 14, 2024 01:56
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/manifest-free-switch branch from 0c1656c to b25b072 Compare December 14, 2024 08:01
@Sergio0694
Copy link
Member Author

Can confirm this trims everything as expected:

image

Exceptions also work as expected:

image

@Sergio0694 Sergio0694 merged commit b37f1cc into staging/2.3 Jan 20, 2025
10 checks passed
@Sergio0694 Sergio0694 deleted the user/sergiopedri/manifest-free-switch branch January 20, 2025 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Related to performance work trimming

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants