Repository navigation
Deprecate UWP for v6 #4497
Copy link
Copy link
Closed
getsentry/sentry-docs
#15379Labels
Milestone
Description
Description
As of October 2021, Microsoft officially deprecated UWP
For version 6, we'll be deprecating UWP in the Sentry SDK for .NET.
I think this is mostly about updating the Sentry docs.
There are a couple of comments in the code that we might want to update as well:
sentry-dotnet/src/Sentry/Integrations/WinUIUnhandledExceptionIntegration.cs
Lines 26 to 30 in a421af5
| // 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.) |
sentry-dotnet/src/Sentry/Internal/ProcessInfo.cs
Lines 152 to 154 in 7885354
| // 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 | |
| // warnings about the use of this API when compiling UWP applications. |
sentry-dotnet/src/Sentry/SentryOptions.cs
Line 1824 in eadf5f2
| "WinRT", // WinRT, UWP, WinUI |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsDone
Activity
linear commentedon Sep 4, 2025
NET-440 Deprecate UWP for v6 (Docs)
Flash0ver commentedon Oct 17, 2025
We also need to deprecate/remove references from Sentry, like onboarding, links to docs, and such.
E.g.
[-]Deprecate UWP for v6 (Docs)[/-][+]Deprecate UWP for v6[/+]Removed UWP (deprecated) (#15379)
arek-corp commentedon Jan 14, 2026
@jamescrosswell I don't quite understand the deprecation of UWP in v6. Based on my understading, the support for UWP has been provided through the .NET Standard version of the Sentry SDK for .NET, and I believe there has been no specific code/feature provided for UWP specifically. The plumbing on the app launch had to be done manually anyway as described in the docs.
What is actually changing then in v6? Is the setup through the .NET Standard DLL not going to work anymore? Or are you just dropping the documentation for UWP platform but the 'manual' setup of Sentry SDK is still legitimate and supported?
arek-corp commentedon Mar 10, 2026
@jamescrosswell Still waiting for the feedback on the above...
jamescrosswell commentedon Mar 10, 2026
@arek-corp sorry for the delay... no we haven't done anything to Sentry that should stop UWP from working. The only changes are removing any docs that imply we're actively supporting UWP (since we don't have the bandwidth to investigate any issues people might have with this):
arek-corp commentedon Mar 11, 2026
Understood @jamescrosswell
I think the Docs don't have any info (at least from what I have found) about any custom integrations based on .NET Standard nuget or generic .NET 8/9/10 nugets where Sentry does not officially support specific platform. Our UWP integration is based on .NET Standard 2.0 version of the library and since now there is no mention about it in the docs I'm worried Sentry will drop support for this integration path entirely in the future.
jamescrosswell commentedon Mar 11, 2026
There are definitely no plans to drop support for .NET Framework or .NET Standard... either by Microsoft or by Sentry. So you're safe there.