{"action":"created","issue":{"url":"https://api.github.com/repos/adamcaudill/libsodium-net/issues/96","labels_url":"https://api.github.com/repos/adamcaudill/libsodium-net/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/adamcaudill/libsodium-net/issues/96/comments","events_url":"https://api.github.com/repos/adamcaudill/libsodium-net/issues/96/events","html_url":"https://github.com/adamcaudill/libsodium-net/issues/96","id":52631806,"number":96,"title":"Support for Windows Phone 8.1","user":{"login":"Aurora12","id":5172598,"avatar_url":"https://avatars.githubusercontent.com/u/5172598?v=3","gravatar_id":"","url":"https://api.github.com/users/Aurora12","html_url":"https://github.com/Aurora12","followers_url":"https://api.github.com/users/Aurora12/followers","following_url":"https://api.github.com/users/Aurora12/following{/other_user}","gists_url":"https://api.github.com/users/Aurora12/gists{/gist_id}","starred_url":"https://api.github.com/users/Aurora12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aurora12/subscriptions","organizations_url":"https://api.github.com/users/Aurora12/orgs","repos_url":"https://api.github.com/users/Aurora12/repos","events_url":"https://api.github.com/users/Aurora12/events{/privacy}","received_events_url":"https://api.github.com/users/Aurora12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":33,"created_at":"2014-12-22T09:14:31Z","updated_at":"2015-07-14T14:10:46Z","closed_at":null,"body":"Hello,\r\n\r\nI want to use libsodium-net in a Windows Store Universal App. This type of projects was introduced this spring and features sharing code between the mobile and desktop parts of the project. This works starting with Windows 8.1 and uses a restricted subset of .NET apis (somewhat even more restricted than Windows Phone 8 and earlier versions had). NuGet package for this kind of projects should target 'WindowsPhoneApp,Version=v8.1'.\r\n\r\nThere are two problems here:\r\n  1. .NET apis: \r\n    * **AppDomain** class is unavailable and there is no loading dlls at runtime as far as I know. So, you can not use **Sodium.DynamicInvoke**.\r\n    * **System.Security.Cryptograph**y is now **Windows.Security.Cryptography**\r\n    * **Array.Copy()** last parameter is no longer long, it's int.\r\n    * **ProtectedMemory** and **MemoryProtectionScope** are to be somehow replaced with Windows.Security.Cryptography.DataProtection.DataProtectionProvider. Here's the full list of replacements: http://msdn.microsoft.com/en-us/library/windows/apps/hh464945.aspx\r\n  2. I need to **statically** link sodium library to Windows Phone part of the project. Current libsodium-1.0.1 compiles for a variety of platforms, but not for Windows Phone ARM (let alone 8.1, for that matter). On MSDN forums they suggest that you should create a C++ Static Library or Windows Runtime component and compile the code with Visual Studio (so you can use the result in a Universal Store App). \r\n\r\nWhile I could possibly cope with the first part, I have no clues as to what to do with the second one. Any ideas?"},"comment":{"url":"https://api.github.com/repos/adamcaudill/libsodium-net/issues/comments/121249351","html_url":"https://github.com/adamcaudill/libsodium-net/issues/96#issuecomment-121249351","issue_url":"https://api.github.com/repos/adamcaudill/libsodium-net/issues/96","id":121249351,"user":{"login":"GregorSpagnolo","id":4869477,"avatar_url":"https://avatars.githubusercontent.com/u/4869477?v=3","gravatar_id":"","url":"https://api.github.com/users/GregorSpagnolo","html_url":"https://github.com/GregorSpagnolo","followers_url":"https://api.github.com/users/GregorSpagnolo/followers","following_url":"https://api.github.com/users/GregorSpagnolo/following{/other_user}","gists_url":"https://api.github.com/users/GregorSpagnolo/gists{/gist_id}","starred_url":"https://api.github.com/users/GregorSpagnolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GregorSpagnolo/subscriptions","organizations_url":"https://api.github.com/users/GregorSpagnolo/orgs","repos_url":"https://api.github.com/users/GregorSpagnolo/repos","events_url":"https://api.github.com/users/GregorSpagnolo/events{/privacy}","received_events_url":"https://api.github.com/users/GregorSpagnolo/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T14:10:46Z","updated_at":"2015-07-14T14:10:46Z","body":"@Aurora12 Yes I followed your steps. "}}