確保在您的project.json system.console下 frameworks:dnxcore50:dependencies
例project.json被引用:
{
"version": "1.0.0-*",
"description": "ConsoleApp1 Console Application",
"authors": [ "danny" ],
"tags": [ "" ],
"projectUrl": "",
"licenseUrl": "",
"compilationOptions": {
"emitEntryPoint": true
},
"dependencies": {
},
"commands": {
"ConsoleApp1": "ConsoleApp1"
},
"frameworks": {
"dnx451": { },
"dnxcore50": {
"dependencies": {
"Microsoft.CSharp": "4.0.1-beta-23516",
"System.Collections": "4.0.11-beta-23516",
"System.Console": "4.0.0-beta-23516",
"System.Linq": "4.0.1-beta-23516",
"System.Threading": "4.0.11-beta-23516"
}
}
}
}
是的。這工作。您能否提供一個樣本'project.son'文件內容以供將來參考。 – mehrandvd