Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Centos dotnet还原中止,但没有错误_Centos_Asp.net Core_.net Core - Fatal编程技术网

Centos dotnet还原中止,但没有错误

Centos dotnet还原中止,但没有错误,centos,asp.net-core,.net-core,Centos,Asp.net Core,.net Core,在CentOS上,dotnet restore中止,但无错误: dotnet --verbose restore Telemetry is: Enabled log : Restoring packages for /home/forexsb/testapp/project.json... Aborted 这是我的环境信息: dotnet --info .NET Command Line Tools (1.0.0-preview2-1-003177) Product Informati

在CentOS上,
dotnet restore
中止,但无错误:

dotnet --verbose restore

Telemetry is: Enabled
log  : Restoring packages for /home/forexsb/testapp/project.json...
Aborted
这是我的环境信息:

dotnet --info

.NET Command Line Tools (1.0.0-preview2-1-003177)

Product Information:
 Version:            1.0.0-preview2-1-003177
 Commit SHA-1 hash:  a2df9c2576

Runtime Environment:
 OS Name:     centos
 OS Version:  7
 OS Platform: Linux
 RID:         centos.7-x64
这是我的project.json内容:

{
   "version": "1.0.0-*",
   "buildOptions": {
     "debugType": "portable",
     "emitEntryPoint": true
   },
   "dependencies": {
     "Microsoft.AspNetCore.Server.Kestrel": "1.1.0"
   },
   "frameworks": {
     "netcoreapp1.1": {
       "dependencies": {
         "Microsoft.NETCore.App": {
           "type": "platform",
           "version": "1.1.0"
         }
       }
     }
   }
}

有没有办法修复它?

Mby尝试将您的.NET Core升级到最新版本我刚刚从Microsoft官方链接安装了它:
curl-sSL-o dotnet.tar.gzhttps://go.microsoft.com/fwlink/?LinkID=835019
Mby尝试将您的.NET Core升级到最新版本我刚刚从Microsoft官方链接安装了它:
curl-sSL-o dotnet.tar.gzhttps://go.microsoft.com/fwlink/?LinkID=835019