1
Vote

[JValue] Reference to type 'System.IConvertible' not found

description

There seems to be some compile-time warning when using JValue in Windows Phone 8.1 application (Windows Store) in Visual Studio 2013. Whenever using the constructor of JValue, I get warning:

"Warning 1
Reference to type 'System.IConvertible' claims it is defined in 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhoneApp\v8.1\mscorlib.dll', but it could not be found
c:...\App2\packages\Newtonsoft.Json.6.0.6\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll"

To reproduce:
  1. In Visual Studio 2013 create new project for Windows Phone 8.1 (Store one, not Silverlight). For example "Blank app (Windows Phone)"
  2. Anywhere in any of the methods of the code-behind for a page, add
new JValue(string.Empty)
  1. Rebuild the project and observe the error
The VS I use is up-to-date with:

Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641
Windows Phone SDK 8.0 - ENU 06177-004-0446016-02753
Windows Phone SDK 8.0 - ENU
Windows Phone 8.1 SDK Integration 1.0

comments

esses77 wrote Jul 6, 2015 at 10:30 AM

Hi,

did you solve this issue? I had the same issue...

kamenlitchev wrote Jul 6, 2015 at 11:45 AM

Was some time ago, but I do not remember having a solution