代码抱怨说:
类型或命名空间名称' AspNetCore'在命名空间中不存在' Microsoft' ...
这是我们的project.json文件。
{
"dependencies": {
"Microsoft.AspNetCore.Mvc.Core": "1.0.0-*"
},
"frameworks": {
"netstandardapp1.5": {
"imports": [
"dnxcore50"
],
"dependencies": {
"NETStandard.Library": "1.5.0-*"
}
}
}
}
这是我们的dotnet build
输出。
> dotnet build
Compiling VsCodeIntellisense for .NETStandardApp,Version=v1.5
Compilation succeeded.
0 Warning(s)
0 Error(s)
Time elapsed 00:00:01.5669579
答案 0 :(得分:0)
Upgrading to the most resent version of vscode appears to have fixed this.