{"action":"created","issue":{"url":"https://api.github.com/repos/NLog/NLog/issues/1412","repository_url":"https://api.github.com/repos/NLog/NLog","labels_url":"https://api.github.com/repos/NLog/NLog/issues/1412/labels{/name}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/1412/comments","events_url":"https://api.github.com/repos/NLog/NLog/issues/1412/events","html_url":"https://github.com/NLog/NLog/issues/1412","id":151859034,"number":1412,"title":"Using NLog in Xamarin.Forms (Portable) project","user":{"login":"wegascee","id":9959801,"avatar_url":"https://avatars.githubusercontent.com/u/9959801?v=3","gravatar_id":"","url":"https://api.github.com/users/wegascee","html_url":"https://github.com/wegascee","followers_url":"https://api.github.com/users/wegascee/followers","following_url":"https://api.github.com/users/wegascee/following{/other_user}","gists_url":"https://api.github.com/users/wegascee/gists{/gist_id}","starred_url":"https://api.github.com/users/wegascee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wegascee/subscriptions","organizations_url":"https://api.github.com/users/wegascee/orgs","repos_url":"https://api.github.com/users/wegascee/repos","events_url":"https://api.github.com/users/wegascee/events{/privacy}","received_events_url":"https://api.github.com/users/wegascee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NLog/NLog/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-29T12:53:56Z","updated_at":"2016-05-10T15:44:56Z","closed_at":null,"body":"**Type**: Question\r\n**NLog version**: 4.4.0-beta5 / 4.3.3\r\n**Platform**: Xamarin PCL (.Net 4.5)\r\n\r\nI tried to install the latest alpha release in my PCL project (Xamarin.iOS, Xamarin.Droid, UWP) with this command:\r\n\r\n`Install-Package NLog -Pre `\r\n\r\nThereby I'm using Visual Studio 2015. The installation fails with this error\r\n\r\n> Install-Package : Could not install package 'System.Diagnostics.Contracts 4.0.1-beta-23516'. You are trying to install this package into a project that targets \r\n> 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more \r\n> information, contact the package author.\r\n> At line:1 char:1\r\n> + Install-Package NLog -Pre\r\n> + ~~~~~~~~~~~~~~~~~~~~~~~~~\r\n>     + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception\r\n>     + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand\r\n\r\nIf I try to install NLog 4.3.3 I get this error:\r\n\r\n> Error\t\tCould not install package 'NLog 4.3.3'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.\t\t\t0\t\r\n\r\nIs it possible to integrate NLog in my project and if yes, how?\r\n\r\nAnother question: Will support for UWP be included in NLog 4.4?\r\n\r\nThanks!\r\n\r\n**Edit:**\r\nWhat I've found out is that I can only install NLog directly in the Xamarin.iOS and Xamarin.Droid sub-projects.\r\n\r\nAdditional question: Where do you instantiate the logger? In a global singleton?"},"comment":{"url":"https://api.github.com/repos/NLog/NLog/issues/comments/218200366","html_url":"https://github.com/NLog/NLog/issues/1412#issuecomment-218200366","issue_url":"https://api.github.com/repos/NLog/NLog/issues/1412","id":218200366,"user":{"login":"304NotModified","id":5808377,"avatar_url":"https://avatars.githubusercontent.com/u/5808377?v=3","gravatar_id":"","url":"https://api.github.com/users/304NotModified","html_url":"https://github.com/304NotModified","followers_url":"https://api.github.com/users/304NotModified/followers","following_url":"https://api.github.com/users/304NotModified/following{/other_user}","gists_url":"https://api.github.com/users/304NotModified/gists{/gist_id}","starred_url":"https://api.github.com/users/304NotModified/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/304NotModified/subscriptions","organizations_url":"https://api.github.com/users/304NotModified/orgs","repos_url":"https://api.github.com/users/304NotModified/repos","events_url":"https://api.github.com/users/304NotModified/events{/privacy}","received_events_url":"https://api.github.com/users/304NotModified/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T15:44:56Z","updated_at":"2016-05-10T15:44:56Z","body":"> What I'd really like to see, is the interface components of NLog (ILogger, LogLevel, an interface for LogFactory, etc) split out into a separate library.\r\n\r\nSo a package called like NLog.Abstractions? \r\n\r\nI think it's a breaking change. We can do it for NLog 5, but I think it's too soon to NLog 5 (and a lot has to be done before it)"}}