C# Gitlab CI错误:作业失败

C# Gitlab CI错误:作业失败,c#,.net,configuration,gitlab,gitlab-ci,C#,.net,Configuration,Gitlab,Gitlab Ci,我对Gitlab有问题。我试图添加一个新的合并请求-pipeline:失败,但一切看起来都很好,我不知道为什么会出错 作业失败结果: Generating MSBuild file /builds/budgeting-app/budgetingapp.api/obj/budgetingapp.api.csproj.nuget.g.props. Generating MSBuild file /builds/budgeting-app/budgetingapp.api/obj/budgetinga

我对Gitlab有问题。我试图添加一个新的合并请求-pipeline:失败,但一切看起来都很好,我不知道为什么会出错

作业失败结果:

Generating MSBuild file /builds/budgeting-app/budgetingapp.api/obj/budgetingapp.api.csproj.nuget.g.props.
Generating MSBuild file /builds/budgeting-app/budgetingapp.api/obj/budgetingapp.api.csproj.nuget.g.targets.
Generating MSBuild file /builds/budgeting-app/budgetingapp.api.tests/obj/budgetingapp.api.tests.csproj.nuget.g.props.
Generating MSBuild file /builds/budgeting-app/budgetingapp.api.tests/obj/budgetingapp.api.tests.csproj.nuget.g.targets.
Restore failed in 15.08 sec for /builds/budgeting-app/budgetingapp.api/budgetingapp.api.csproj.
Restore completed in 15.1 sec for /builds/budgeting-app/budgetingapp.api.tests/budgetingapp.api.tests.csproj.
Restoring packages for /builds/budgeting-app/budgetingapp.data/budgetingapp.data.csproj...
Restoring packages for /builds/budgeting-app/budgetingapp.data.tests/budgetingapp.data.tests.csproj...
Installing Microsoft.Build 15.3.409.
Installing Microsoft.Build.Tasks.Core 15.3.409.
Installing Microsoft.Build.Utilities.Core 15.3.409.
Installing Microsoft.Build.Framework 15.3.409.
Installing System.Text.Encoding.CodePages 4.0.1.
Installing Microsoft.Build.Runtime 15.3.409.
Restore completed in 1.78 sec for /builds/budgeting-app/budgetingapp.api/budgetingapp.api.csproj.
ERROR: Job failed: exit code 1
.gitlab-ci.yml:

  image : microsoft/dotnet:latest
stages:
   - test
before_script:
   - 'dotnet restore'
test:
  stage: test
  script:
     - 'cd budgetingapp.api.tests'
     - 'dotnet test'

您有什么建议吗?

作业失败,因为您的命令返回非零退出代码。可能是因为:

Restore failed in 15.08 sec for /builds/budgeting-app/budgetingapp.api/budgetingapp.api.csproj.