Tony_Henrich
Tony_Henrich

Reputation: 44085

Where is System.Linq in .NET 4.0?

I migrated an asp.net app to 4.0. Now I am getting an error "The type or namespace name 'IQueryable' could not be found". The reference to System.Linq is invalid and I can't find it in the reference list. Where did System.Linq go?

Upvotes: 17

Views: 33472

Answers (3)

Julien Lebosquain
Julien Lebosquain

Reputation: 41213

It's in the System.Core.dll assembly.

Upvotes: 1

matt
matt

Reputation: 9401

Make sure you have a reference to System.Core.dll in your project - I believe System.Linq resides there.

Upvotes: 3

Andrew Hare
Andrew Hare

Reputation: 351476

Make sure you are referencing System.Core.dll in your project. The IQueryable<T> type is defined in that assembly (just as it was in .NET 3.5).

Upvotes: 28

Related Questions