문제

I have a project that targets Windows Phone 7. I would like to use Json.NET in the project. But when I am trying to install the Json.NET package in my project via NuGet Package Manager it says:

Could not install package 'Newtonsoft.Json 6.0.1'. You are trying to install this package into a project that targets 'portable-win+net45+sl40+wp', but the package does not contain any assembly references or content files that are compatible with that framework.

I assume this is because latest version of Json.NET doesn't support Windows Phone 7. How can I install an older version of Json.NET? Preferably via NuGet. What is the latest Json.NET version compatible with Windows Phone 7?

I am using Visual Studio 2012.

도움이 되었습니까?

해결책

In given link all version of json .net command present you could try any of older version which would support in wp7...try one by one:

NuGet Gallery | Json.NET

다른 팁

Here you can check it this version is not compatible with Windows phone 7.
"Change - .NET 4 Portable build targets WP8 and SL5 instead of WP7 and SL4"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top