{"action":"created","issue":{"url":"https://api.github.com/repos/anjdreas/UnitsNet/issues/150","repository_url":"https://api.github.com/repos/anjdreas/UnitsNet","labels_url":"https://api.github.com/repos/anjdreas/UnitsNet/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/anjdreas/UnitsNet/issues/150/comments","events_url":"https://api.github.com/repos/anjdreas/UnitsNet/issues/150/events","html_url":"https://github.com/anjdreas/UnitsNet/issues/150","id":139665191,"number":150,"title":"UnitsNet types are not Windows Runtime Component Compatible","user":{"login":"jbienzms","id":5230670,"avatar_url":"https://avatars.githubusercontent.com/u/5230670?v=3","gravatar_id":"","url":"https://api.github.com/users/jbienzms","html_url":"https://github.com/jbienzms","followers_url":"https://api.github.com/users/jbienzms/followers","following_url":"https://api.github.com/users/jbienzms/following{/other_user}","gists_url":"https://api.github.com/users/jbienzms/gists{/gist_id}","starred_url":"https://api.github.com/users/jbienzms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbienzms/subscriptions","organizations_url":"https://api.github.com/users/jbienzms/orgs","repos_url":"https://api.github.com/users/jbienzms/repos","events_url":"https://api.github.com/users/jbienzms/events{/privacy}","received_events_url":"https://api.github.com/users/jbienzms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-03-09T18:43:14Z","updated_at":"2016-03-23T23:29:45Z","closed_at":null,"body":"I would like to use UnitsNet in a large Windows IoT Core Devices project I manage called [Microsoft.IoT.Devices](http://aka.ms/iotdevices). However, when I attempt to use the types defined in UnitsNet as return values in my library I get the following error:\r\n\r\n> Severity\tCode\tDescription\tProject\tFile\tLine\tSuppression State\r\n> Error\tWME1032\tMethod 'Microsoft.IoT.DeviceCore.Sensors.ITemperatureReading.Temperature.get()' returns 'UnitsNet.Temperature', which is not a valid Windows Runtime type.  Methods exposed to Windows Runtime must return only Windows Runtime types.\tMicrosoft.IoT.DeviceCore\tC:\\Users\\jbienz\\Code\\Microsoft\\IoTDevices\\Lib\\Microsoft.IoT.DeviceCore\\Sensors\\Temperature\\TemperatureReading.cs\t23\tActive\r\n\r\n\r\nThis is due to the [type restrictions on WinRT components](https://msdn.microsoft.com/en-us/library/windows/apps/xaml/br230301.aspx).\r\n\r\nObviously UnitsNet was written as a Class Library and not a WinRT component. And obviously refactoring the library into a WinRT component may require that some features be left off. However, I still feel this would be incredibly valuable to have, especially in the IoT space.\r\n\r\nIf you would like to discuss this more please feel free to reach out to me. com dot microsoft at jbienz, or via github."},"comment":{"url":"https://api.github.com/repos/anjdreas/UnitsNet/issues/comments/200582114","html_url":"https://github.com/anjdreas/UnitsNet/issues/150#issuecomment-200582114","issue_url":"https://api.github.com/repos/anjdreas/UnitsNet/issues/150","id":200582114,"user":{"login":"anjdreas","id":787816,"avatar_url":"https://avatars.githubusercontent.com/u/787816?v=3","gravatar_id":"","url":"https://api.github.com/users/anjdreas","html_url":"https://github.com/anjdreas","followers_url":"https://api.github.com/users/anjdreas/followers","following_url":"https://api.github.com/users/anjdreas/following{/other_user}","gists_url":"https://api.github.com/users/anjdreas/gists{/gist_id}","starred_url":"https://api.github.com/users/anjdreas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anjdreas/subscriptions","organizations_url":"https://api.github.com/users/anjdreas/orgs","repos_url":"https://api.github.com/users/anjdreas/repos","events_url":"https://api.github.com/users/anjdreas/events{/privacy}","received_events_url":"https://api.github.com/users/anjdreas/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T23:29:45Z","updated_at":"2016-03-23T23:29:45Z","body":"> With x86 selected, when I try to reference your NuGet package I get the following error in the Error window:\r\n\r\nYes this is the error I got as well. Haven't had time to research it yet,  but I will read your link. Hopefully this is just a matter of tweaking the nuspec. "}}