To get trimming working we had to remove some code that used reflection to automatically register an unhandled exception handler in WinUI applications, if Trimming is enabled (typically when doing AOT compilation). Further details in #2732
This means we have to document how users can send unhandled exceptions to Sentry
- getsentry/sentry-docs#8557
- getsentry/sentry-docs#8602