{"action":"created","issue":{"url":"https://api.github.com/repos/mbrit/MetroLog/issues/50","labels_url":"https://api.github.com/repos/mbrit/MetroLog/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/mbrit/MetroLog/issues/50/comments","events_url":"https://api.github.com/repos/mbrit/MetroLog/issues/50/events","html_url":"https://github.com/mbrit/MetroLog/issues/50","id":35418734,"number":50,"title":"Using Metrolog in iOS Results in System.TypeInitializationException","user":{"login":"michaelstonis","id":120685,"avatar_url":"https://avatars.githubusercontent.com/u/120685?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelstonis","html_url":"https://github.com/michaelstonis","followers_url":"https://api.github.com/users/michaelstonis/followers","following_url":"https://api.github.com/users/michaelstonis/following{/other_user}","gists_url":"https://api.github.com/users/michaelstonis/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelstonis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelstonis/subscriptions","organizations_url":"https://api.github.com/users/michaelstonis/orgs","repos_url":"https://api.github.com/users/michaelstonis/repos","events_url":"https://api.github.com/users/michaelstonis/events{/privacy}","received_events_url":"https://api.github.com/users/michaelstonis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"onovotny","id":1427284,"avatar_url":"https://avatars.githubusercontent.com/u/1427284?v=3","gravatar_id":"","url":"https://api.github.com/users/onovotny","html_url":"https://github.com/onovotny","followers_url":"https://api.github.com/users/onovotny/followers","following_url":"https://api.github.com/users/onovotny/following{/other_user}","gists_url":"https://api.github.com/users/onovotny/gists{/gist_id}","starred_url":"https://api.github.com/users/onovotny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onovotny/subscriptions","organizations_url":"https://api.github.com/users/onovotny/orgs","repos_url":"https://api.github.com/users/onovotny/repos","events_url":"https://api.github.com/users/onovotny/events{/privacy}","received_events_url":"https://api.github.com/users/onovotny/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2014-06-10T19:55:55Z","updated_at":"2015-02-11T13:09:03Z","closed_at":null,"body":"Metrolog is being called via a PCL from both a Xamarin.Android and Xamarin.iOS project. Each Xamarin project has the corresponding Metrolog.Platform project reference from nuget. \r\n\r\nCalls from Xamarin.Android work without issues.\r\n\r\n    Unhandled managed exception: An exception was thrown by the type initializer for MetroLog.LogManagerFactory (System.TypeInitializationException)"},"comment":{"url":"https://api.github.com/repos/mbrit/MetroLog/issues/comments/73878036","html_url":"https://github.com/mbrit/MetroLog/issues/50#issuecomment-73878036","issue_url":"https://api.github.com/repos/mbrit/MetroLog/issues/50","id":73878036,"user":{"login":"onovotny","id":1427284,"avatar_url":"https://avatars.githubusercontent.com/u/1427284?v=3","gravatar_id":"","url":"https://api.github.com/users/onovotny","html_url":"https://github.com/onovotny","followers_url":"https://api.github.com/users/onovotny/followers","following_url":"https://api.github.com/users/onovotny/following{/other_user}","gists_url":"https://api.github.com/users/onovotny/gists{/gist_id}","starred_url":"https://api.github.com/users/onovotny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onovotny/subscriptions","organizations_url":"https://api.github.com/users/onovotny/orgs","repos_url":"https://api.github.com/users/onovotny/repos","events_url":"https://api.github.com/users/onovotny/events{/privacy}","received_events_url":"https://api.github.com/users/onovotny/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T13:09:03Z","updated_at":"2015-02-11T13:09:03Z","body":"The linker shouldn't be removing referenced files if the SdkOnly option is set -- I know there's currently a bug in the Visual Studio Xamarin UI for this. Can you take a quick look at the csproj file to verify if `<MtouchLink>SdkOnly</MtouchLink>` is in the property group section for the configuration you're using?"}}