payload: {"action":"created","issue":{"url":"https://api.github.com/repos/mellinoe/nativelibraryloader/issues/13","repository_url":"https://api.github.com/repos/mellinoe/nativelibraryloader","labels_url":"https://api.github.com/repos/mellinoe/nativelibraryloader/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/mellinoe/nativelibraryloader/issues/13/comments","events_url":"https://api.github.com/repos/mellinoe/nativelibraryloader/issues/13/events","html_url":"https://github.com/mellinoe/nativelibraryloader/issues/13","id":521055782,"node_id":"MDU6SXNzdWU1MjEwNTU3ODI=","number":13,"title":"Adopt new API in .NET Core 3.0 - System.Runtime.InteropServices.NativeLibrary","user":{"login":"JanVargovsky","id":13921215,"node_id":"MDQ6VXNlcjEzOTIxMjE1","avatar_url":"https://avatars0.githubusercontent.com/u/13921215?v=4","gravatar_id":"","url":"https://api.github.com/users/JanVargovsky","html_url":"https://github.com/JanVargovsky","followers_url":"https://api.github.com/users/JanVargovsky/followers","following_url":"https://api.github.com/users/JanVargovsky/following{/other_user}","gists_url":"https://api.github.com/users/JanVargovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/JanVargovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanVargovsky/subscriptions","organizations_url":"https://api.github.com/users/JanVargovsky/orgs","repos_url":"https://api.github.com/users/JanVargovsky/repos","events_url":"https://api.github.com/users/JanVargovsky/events{/privacy}","received_events_url":"https://api.github.com/users/JanVargovsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-11-11T16:19:01Z","updated_at":"2019-11-18T07:04:54Z","closed_at":null,"author_association":"NONE","body":"I've encountered similar issue as #2. Since that time, native API has been merged in the .NET Core 3.0, [see docs](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.nativelibrary?view=netcore-3.0).\r\n\r\nThe library may adopt these changes quite easy:\r\n```csharp\r\nclass NetCoreLibraryLoader : LibraryLoader\r\n{\r\n    protected override void CoreFreeNativeLibrary(IntPtr handle)\r\n    {\r\n        System.Runtime.InteropServices.NativeLibrary.Free(handle);\r\n    }\r\n\r\n    protected override IntPtr CoreLoadFunctionPointer(IntPtr handle, string functionName)\r\n    {\r\n        return System.Runtime.InteropServices.NativeLibrary.GetExport(handle, functionName);\r\n\r\n    }\r\n\r\n    protected override IntPtr CoreLoadNativeLibrary(string name)\r\n    {\r\n        return System.Runtime.InteropServices.NativeLibrary.Load(name);\r\n    }\r\n}\r\n```\r\n\r\nWe would have to target .NET Core 3.0 instead of .NET Standard 2.0.\r\n\r\nWhat is your opinion about changing/adding the target framework to Core 3.0? Or maybe publish both NS and Core versions? Not sure whether it works - from the consumer perspective. I've seen a few libraries dropped out NS support and target Core but I'm aware that this library is commonly used in Mono/Xamarin."},"comment":{"url":"https://api.github.com/repos/mellinoe/nativelibraryloader/issues/comments/554880866","html_url":"https://github.com/mellinoe/nativelibraryloader/issues/13#issuecomment-554880866","issue_url":"https://api.github.com/repos/mellinoe/nativelibraryloader/issues/13","id":554880866,"node_id":"MDEyOklzc3VlQ29tbWVudDU1NDg4MDg2Ng==","user":{"login":"mtosoftware","id":50978201,"node_id":"MDQ6VXNlcjUwOTc4MjAx","avatar_url":"https://avatars3.githubusercontent.com/u/50978201?v=4","gravatar_id":"","url":"https://api.github.com/users/mtosoftware","html_url":"https://github.com/mtosoftware","followers_url":"https://api.github.com/users/mtosoftware/followers","following_url":"https://api.github.com/users/mtosoftware/following{/other_user}","gists_url":"https://api.github.com/users/mtosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/mtosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtosoftware/subscriptions","organizations_url":"https://api.github.com/users/mtosoftware/orgs","repos_url":"https://api.github.com/users/mtosoftware/repos","events_url":"https://api.github.com/users/mtosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/mtosoftware/received_events","type":"User","site_admin":false},"created_at":"2019-11-18T07:04:54Z","updated_at":"2019-11-18T07:04:54Z","author_association":"NONE","body":"100% it would be best to keep targeting .NET Standard."}}
other: {"actor":{"display_login":"mtosoftware"}}