Sentry Native Support without NativeAOT #3478
Replies: 3 comments 1 reply
-
Hey @DominicMaas, glad you're getting some value out of the SDK! That is actually really tricky and I don't know how to answer that off the top of my head. Looking at our sentry-dotnet/src/Sentry/Sentry.csproj Lines 24 to 25 in e68c8c7 |
Beta Was this translation helpful? Give feedback.
-
Hi! Looking at https://github.com/getsentry/sentry-dotnet/blob/main/src/Sentry/Platforms/Native/SentryNative.cs it seems that there is an explicit check on if the app is running under NativeAOT. (I assume for good reason). Yeah it's a little tricky! Our macOS app (using the same core c++ library) has native integration, so went on a expedition to see if I can integrate the same into our Windows app. |
Beta Was this translation helpful? Give feedback.
-
Just came across these issues that relate to my situation I believe: |
Beta Was this translation helpful? Give feedback.
-
Hi, First, amazing work with the SDK and product! It's a dream to use compared to AppCenter.
I've got a WinUI application that talks to a shared c++ library that's not compiled using NativeAOT (not supported on WinUI at the moment).
I'm wondering what's the best way forward with catching errors in the native code? Managed code is already implemented and works beautifully.
I was looking at integrating sentry native into the library, but I noticed that some work was done to allow catching of native crashes for NativeAOT scenarios (but this is gated to aot apps from what I can understand).
Would the native integration in this SDK suffice if i could enable it for non-aot scenarios, or shall I continue with integrating sentry into the native library?
Beta Was this translation helpful? Give feedback.
All reactions