本文介绍了.NET 4.0中的System.Linq在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将asp应用程序迁移到了4.0.现在,我收到一个错误找不到类型或名称空间名称'IQueryable'".对System.Linq的引用无效,我在引用列表中找不到它. System.Linq去哪了?
I migrated an asp 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?
推荐答案确保在项目中引用System.Core.dll. IQueryable<T>类型在该程序集中定义(就像在.NET 3.5中一样).
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).
更多推荐
.NET 4.0中的System.Linq在哪里?
发布评论