Where is System.Linq in .NET 4.0?

前端 未结 3 2040
萌比男神i
萌比男神i 2021-02-19 02:34

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\'

3条回答
  •  生来不讨喜
    2021-02-19 02:50

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

提交回复
热议问题