✅ ILC AOT Analysis IL1005
So I'm working in a NativeAOT env, and I have this little chunk of code:
And that small two lines throws
My code using said function is
Any ideas?
2 Replies
I know NativeAOT doesn't like ptrs to managed types being externed
but I thought
void
was treated as a primitive?
No clue if it's being confused by System.Void
, but I'd assume not
I'm wondering if I have to force IntPtr
NVM it's because I forgot [MethodImpl(MethodImplOptions.InternalCall)]
If you have no further questions, please use /close to mark the forum thread as answered