AWS CodeBuild 未找到匹配的工件错误

AWS CodeBuild no matching artifacts found error

尝试使用 codebuild 构建 asp.net 应用程序并获得 no matching artifacts found error。 我们可以通过任何方式检查在构建代理上创建此工件的位置吗?

版本:0.2

phases:
  install:


  pre_build:
    commands:
     - New-Item -ItemType Junction -Path C:\Src -Value $Env:CODEBUILD_SRC_DIR
     - cd C:\Src  
     - nuget.exe restore

  build:
    commands:
      - echo Executing Build Phase
      - echo build started on `date`
      - msbuild .\ASPWebApp\ASPWebApp.csproj /p:outdir=.\build_output
    finally:
      - echo Executing build finally


artifacts:
    files:
        - .\build_output\**\*
    name: newbucket26

我找到了这个问题的解决方案。 AWS codebuild 默认 windows 构建代理不支持 asp.net 框架,它只支持 .net 核心框架。因此,要构建 asp.net 应用程序,我们需要使用 Microsoft 提供的自定义 docker 图像。