我在asp.net vNext类库中使用linq表达式.编辑器中没有显示错误,但是当我尝试构建时,我看到以下消息:
Could not find an implementation of the query pattern for source type 'IEnumerable<T>'. 'Select' not found. Are you missing a reference to 'System.Core.dll' or a using directive for 'System.Linq'? FitLog.Domain.ASP.NET Core 5.0
我确实有System.Linq的using语句,所以我不确定是怎么回事.
更新
这是我的project.json:
{
"version": "1.0.0-*",
"dependencies": {
},
"frameworks" : {
"aspnet50" : {
"dependencies": {
}
},
"aspnetcore50" : {
"dependencies": {
"System.Runtime": "4.0.20-*"
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2339 次 |
| 最近记录: |