找不到匹配的工件路径

no matching artifact paths found

我计划使用 AWS codebuild 构建示例 .net mvc 应用程序。 但是出现错误:找不到匹配的工件路径

buildspec.yml 文件如下。

我错过了什么?


version: 0.2

phases:
  install:
    commands:
      - echo Executing Install Phase

  pre_build:
    command:
      - echo Executing Pre Build Phase
      - echo Restore started on `date`
      - echo restore demorepo2.csproj

  build:
    command:
      - echo Executing Build Phase
      - echo build started on `date`
      - dotnet publish -c release -o ./build_output demorepo2.csproj 


  post_build:
    command:
      - echo Executing Post Build Phase


artifacts:
    files:
        - ./build_output/**
    name: build-demo2-artifacts

根据评论。问题是 buildspec.yml 文件中的 错误语句 。而不是 command 应该是 commands.