pe -lines to get the exception information but I am hoping to just get that as part of the hosting code and log that somewhere in a file.Exception has occurred: W32/0xE0434352
Unhandled exception at 0x00007FF8EC62FF6C (KernelBase.dll) in notepad.exe: 0xE0434352 (parameters: 0xFFFFFFFF80070002, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FF8A1AF0000).
hostfxr_set_error_writer that calls a simple function like the below but it is never calledtry { } catch {} as well as AppDomain.CurrentDomain.UnhandledException to try and see if I can just catch the exception to handle accordingly but none of it works.