{"action":"created","issue":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1573","repository_url":"https://api.github.com/repos/libgit2/libgit2sharp","labels_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1573/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1573/comments","events_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1573/events","html_url":"https://github.com/libgit2/libgit2sharp/issues/1573","id":323318971,"number":1573,"title":"At runtime: “The type initializer for ‘LibGit2Sharp.Core.NativeMethods’ threw an exception","user":{"login":"verxion","id":4944181,"avatar_url":"https://avatars0.githubusercontent.com/u/4944181?v=4","gravatar_id":"","url":"https://api.github.com/users/verxion","html_url":"https://github.com/verxion","followers_url":"https://api.github.com/users/verxion/followers","following_url":"https://api.github.com/users/verxion/following{/other_user}","gists_url":"https://api.github.com/users/verxion/gists{/gist_id}","starred_url":"https://api.github.com/users/verxion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/verxion/subscriptions","organizations_url":"https://api.github.com/users/verxion/orgs","repos_url":"https://api.github.com/users/verxion/repos","events_url":"https://api.github.com/users/verxion/events{/privacy}","received_events_url":"https://api.github.com/users/verxion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-15T17:48:18Z","updated_at":"2018-05-16T17:14:01Z","closed_at":null,"author_association":"NONE","body":"### Reproduction steps\r\n\r\nRun “Package-Install LibGit2Sharp” once in a solution with only one project and once in a solution with multiple projects.  Using “LibGit2Sharp.Repository.Clone” works fine from the single project solution, but fails in the multiproject solution with above error (in title of this issue).\r\n\r\n### Expected behavior\r\n\r\nExpect them to both work\r\n\r\n### Actual behavior\r\n\r\nMultiproject solution gives following error at runtime: “The type initializer for ‘LibGit2Sharp.Core.NativeMethods’ threw an exception”\r\n\r\n### Version of LibGit2Sharp (release number or SHA1)\r\n\r\n0.25.0 (same issue was present on 0.24.0 at least)\r\n\r\n### Operating system(s) tested; .NET runtime tested\r\n\r\nWindows 7, 4.6.1 (doesn’t work), .NET Core 2.0 (works)\r\n\r\nNote that I initially created a Stack Overflow question for this, available here: https://stackoverflow.com/questions/50355388/the-type-initializer-for-libgit2sharp-core-nativemethods-threw-an-exception?noredirect=1#comment87728615_50355388"},"comment":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/comments/389596530","html_url":"https://github.com/libgit2/libgit2sharp/issues/1573#issuecomment-389596530","issue_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/1573","id":389596530,"user":{"login":"bording","id":753669,"avatar_url":"https://avatars0.githubusercontent.com/u/753669?v=4","gravatar_id":"","url":"https://api.github.com/users/bording","html_url":"https://github.com/bording","followers_url":"https://api.github.com/users/bording/followers","following_url":"https://api.github.com/users/bording/following{/other_user}","gists_url":"https://api.github.com/users/bording/gists{/gist_id}","starred_url":"https://api.github.com/users/bording/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bording/subscriptions","organizations_url":"https://api.github.com/users/bording/orgs","repos_url":"https://api.github.com/users/bording/repos","events_url":"https://api.github.com/users/bording/events{/privacy}","received_events_url":"https://api.github.com/users/bording/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T17:14:01Z","updated_at":"2018-05-16T17:14:01Z","author_association":"MEMBER","body":"@verxion What is the full stacktrace of the error you're getting? Does it include\r\n\r\n```\r\nSystem.IO.FileLoadException: Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.\r\n```\r\n\r\nIf not, then you're not having the same problem.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"bording"}}