AWS Codebuild编译.net 4项目

问题描述 投票:0回答:1

我需要使用aws codebuild构建一个C# winforms项目。这是我的buildspec.yml。

version: 0.2

phases:
  install:
    commands:
      - echo "Installing DotNet 4.8"
      - Invoke-WebRequest -Uri https://download.visualstudio.microsoft.com/download/pr/014120d7-d689-4305-befd-3cb711108212/0307177e14752e359fde5423ab583e43/ndp48-devpack-enu.exe -OutFile C:\ndp48-devpack-enu.exe
      - Start-Process C:\ndp48-devpack-enu.exe -ArgumentList "/quiet /norestart /log C:\dn48.txt" -wait
      - cat C:\dn48.txt
      - echo "Installing Windows SDK"
      - Invoke-WebRequest -Uri https://download.microsoft.com/download/1/c/3/1c3d5161-d9e9-4e4b-9b43-b70fe8be268c/windowssdk/winsdksetup.exe -OutFile C:\winsdksetup.exe
      - Start-Process C:\winsdksetup.exe -ArgumentList "/quiet /norestart /log C:\wsdk.txt" -wait
      - cat C:\wsdk.txt
  build:
    commands:
      - echo "Building application"
      - msbuild v14 build....
  post_build:
    commands:
      - echo Build complete

我正在使用aws codebuild windows-base:2.0。所有的安装都通过了,但是当我尝试构建时,我得到了以下信息 Task failed because "AxImp.exe" was not found 虽然我安装了windows 10 SDK

有谁知道如何让它工作吗,甚至不一定是上面的解决方案。

.net amazon-web-services visual-studio-2015 aws-codebuild build-tools
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.