![](/img/trans.png)
[英]aws codebuild for windows 2019 failed with .net 4.7 project
[英]AWS Codebuild Compile .net 4 project
我需要使用 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
任何人都知道如何使它工作? 甚至不必是上述解決方案。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.