I'm writing a Xamarin.Forms app, which calls into other shared projects as well as into native code (via android binding projects). I want to log exceptions, that come from my managed code (I registered a callback for AndroidEnvironment.UnhandledExceptionRaiser). I discovered that the source for managed unhandled exceptions equals the assembly name of my project. I already tried to get this one with
System.Reflection.Assembly.GetEntryAssembly()which gives me
null. Do you know how to get the name?
Or is there a better way to determine if an exception comes from managed / unmanaged code?
Thanks in advance