Portable library xamarin and Json.net

I cannot use Json.net in a portable library. I installed a portable library to use profile 4.5 -78. It compiles fine, but at runtime it throws an exception not found in the file. Has any body encountered the same problem?

+4
source share
2 answers

Nuget probably adds a portable assembly reference portable-net45+wp80+win8for Json.NET, which is not compatible with current versions of Xamarin. To get the job, you can manually switch the usage linkportable-net40+sl4+wp7+win8

Switching to compatible portable Json.NET reference

+6
source

Nuget (Newtonsoft.Json.6.0.1). , HintPath PCL csproj portable-net40+sl5+wp80+win8+monotouch+monoandroid.

csproj :

<Reference Include="Newtonsoft.Json, Version=...">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>..\packages\Newtonsoft.Json.6.0.1\lib\portable-net45+wp80+win8\Newtonsoft.Json.dll</HintPath>
</Reference>

DLL.

+2

All Articles