Josh Stodola
Josh Stodola

Reputation: 82483

Type or namespace 'Linq' doesn't exist in the namespace 'System'

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?

Upvotes: 3

Views: 891

Answers (2)

Randolpho
Randolpho

Reputation: 56391

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

Upvotes: 7

Greg Hurlman
Greg Hurlman

Reputation: 17804

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

Upvotes: 5

Related Questions