views:

537

answers:

2

I am trying to build the Json.NET 2.0 library to target the .NET framework version 2.0, and I am getting this error several times. I went to add a reference to System.Linq to the project, but it does not exist in the references list! What should I do?

+4  A: 

System.Linq is a version 3.5 DLL; you'll need to remove references to it to compile in 2.0.

Greg Hurlman
+7  A: 

Json.NET 2.0 does not support .NET 2.0. If you want .NET 2.0 support, use Json.NET 1.3.1.

Randolpho
Thanks. I find it disturbing that they have versions of Json.NET called 2.0, 3.0, and 3.5 but they do not correlate with the version of the framework.
Josh Stodola
It looks like they're trying to get Json.NET to correspond to the .NET frameworks, but are a little slow in doing so.
Randolpho