I got this error and.. nothing on the web ! It seems to come from Newtonsoft.Json..
There is the output
of my PCL project
1
I had the same problem. It took me days to figure this out. To solve the problem, I had to comment out this line from my UWP.csproj file.
..\..\..\..\..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll
I can only assume that this line got added when I tried to add the following loading page recipe to my app. At one point, I tried to add it as a customer renderer to my UWP app and in doing so added using UIKIT, which is an iOS thing. I'm only speculating, but perhaps that is it. https://developer.xamarin.com/recipes/ios/standard_controls/popovers/display_a_loading_message/
I also assume that it worked just fine under Debug, but didn't Build under Release due to the fact that the .Net Native tool chain option was trying to compile the Xamarin.iOS.dll with my UWP app.
I'm not saying that this is your issue, but perhaps there is a similar entry in your UWP.csproj file that is causing the issue. Hope this helps.