Where is System.Linq in .NET 4.0?

前端 未结 3 2057
萌比男神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<T> type is defined in that assembly (just as it was in .NET 3.5).

    0 讨论(0)
  • 2021-02-19 03:04

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

    0 讨论(0)
  • 2021-02-19 03:14

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

    0 讨论(0)
提交回复
热议问题