I was wondering what it takes to call native code from C# in .Net Core. Fortunately the P\Invoke APi is the same as it was in the old .net framework, and basically the same code works fine. The older tutorials contain quite a bit of information on the subject.