Domanda

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.

È stato utile?

Soluzione

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

Altri suggerimenti

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"

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top