Moving to JSON.NET 4.0.3 broke my app

后端 未结 1 676
谎友^
谎友^ 2021-01-28 04:34

I have a Windows Phone 7.1 (Mango) application that was using JSON.NET 4.0.2.

I upgraded it to 4.0.3 and now I get all kinds of error.

A deserialized class that

相关标签:
1条回答
  • 2021-01-28 04:59

    The problem is that Windows Phone 7.1 defaults to the Silverlight 4 build if no explicit Silverlight 4 WP build is specified. Silverlight 4 has features that aren't available on WP which is why this causes Json.NET to break.

    This will be fixed in 4.0.5 by having the current Windows Phone 7.0 dll used for 7.1 but for now to fix the problem just change the dll reference to the Newtonsoft.Json.dll file in the sl3-wp directory.

    0 讨论(0)
提交回复
热议问题