From bccb4dd1aaccbe9ad4046b1a8d3afdd5c55285be Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Mon, 3 Nov 2025 16:08:41 +1300 Subject: [PATCH 1/3] Removed references to UWP --- .../Integrations/WinUIUnhandledExceptionIntegration.cs | 6 +----- src/Sentry/Internal/ProcessInfo.cs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Sentry/Integrations/WinUIUnhandledExceptionIntegration.cs b/src/Sentry/Integrations/WinUIUnhandledExceptionIntegration.cs index d9b2fc3f9c..1ff4c70643 100644 --- a/src/Sentry/Integrations/WinUIUnhandledExceptionIntegration.cs +++ b/src/Sentry/Integrations/WinUIUnhandledExceptionIntegration.cs @@ -23,11 +23,7 @@ namespace Sentry.Integrations; // to avoid reflection (which would also allow us to support trimming with this // integration). // -// This integration is for WinUI 3. It does NOT work for UWP (WinUI 2). -// For UWP, the calling application will need to hook the event handler. -// See https://docs.sentry.io/platforms/dotnet/guides/uwp/ -// (We can't do it automatically without a separate UWP class library, -// due to a security exception when attempting to attach the event dynamically.) +// This integration is for WinUI 3. It does NOT work with UWP or WinUI 2 internal class WinUIUnhandledExceptionIntegration : ISdkIntegration { diff --git a/src/Sentry/Internal/ProcessInfo.cs b/src/Sentry/Internal/ProcessInfo.cs index 414c93e394..dae5fbbdbd 100644 --- a/src/Sentry/Internal/ProcessInfo.cs +++ b/src/Sentry/Internal/ProcessInfo.cs @@ -150,7 +150,7 @@ private static DateTimeOffset GetStartupTime() private static extern IntPtr GetForegroundWindow(); // GetWindowThreadProcessId is only available in the Windows SDK, so trying to call this from UWP apps will fail. - // We wrap use of this in a try/catch as a workaround. However, we need `ExactSpelling = true` here to suppress + // We wrap use of this in a try/catch as a workaround. However, we need `ExactSpelling = true` here to suppress // warnings about the use of this API when compiling UWP applications. [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true, ExactSpelling = true)] private static extern int GetWindowThreadProcessId(IntPtr handle, out int processId); From e172571aa7391a4a6ea12c055d0bf8604b38b0a5 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Mon, 3 Nov 2025 16:16:57 +1300 Subject: [PATCH 2/3] . --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6444961f6..955d0f9da1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Spans and Transactions now implement `IDisposable` so that they can be used with `using` statements/declarations that will automatically finish the span with a status of OK when it passes out of scope, if it has not already been finished, to be consistent with `Activity` classes when using OpenTelemetry ([#4627](https://github.com/getsentry/sentry-dotnet/pull/4627)) - SpanTracer and TransactionTracer are still public but these are now `sealed` (see also [#4627](https://github.com/getsentry/sentry-dotnet/pull/4627)) - CaptureFeedback now returns a `SentryId` and a `CaptureFeedbackResult` out parameter that indicate whether feedback was captured successfully and what the reason for failure was otherwise ([#4613](https://github.com/getsentry/sentry-dotnet/pull/4613)) +- Depricate UWP ([#4686](https://github.com/getsentry/sentry-dotnet/pull/4686)) ### Features From c5cafab53949e6041577d658765d099ffd70d646 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Thu, 6 Nov 2025 10:29:48 +1300 Subject: [PATCH 3/3] changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 955d0f9da1..86726bb16d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ - Spans and Transactions now implement `IDisposable` so that they can be used with `using` statements/declarations that will automatically finish the span with a status of OK when it passes out of scope, if it has not already been finished, to be consistent with `Activity` classes when using OpenTelemetry ([#4627](https://github.com/getsentry/sentry-dotnet/pull/4627)) - SpanTracer and TransactionTracer are still public but these are now `sealed` (see also [#4627](https://github.com/getsentry/sentry-dotnet/pull/4627)) - CaptureFeedback now returns a `SentryId` and a `CaptureFeedbackResult` out parameter that indicate whether feedback was captured successfully and what the reason for failure was otherwise ([#4613](https://github.com/getsentry/sentry-dotnet/pull/4613)) -- Depricate UWP ([#4686](https://github.com/getsentry/sentry-dotnet/pull/4686)) +- UWP support has been dropped. Future efforts will likely focus on WinUI 3, in line with Microsoft's recommendations for building Windows UI apps. ([#4686](https://github.com/getsentry/sentry-dotnet/pull/4686)) ### Features