'AWS CodeBuild Visual Studio 2019 build tools
Is there a way to install Visual Studio 2019 build tools
on CodeBuild that is using the aws/codebuild/windows-base:2019-1.0
image?
I receive the following error when running the choco install visualstudio2019buildtools -Y
command:
ERROR: Running ["C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\visualstudio2019buildtools\16.11.13.0\vs_BuildTools.exe" update --wait --quiet --norestart --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"] was not successful. Exit code was '1'. See log for possible error messages.
The install of visualstudio2019buildtools was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2019buildtools\tools\ChocolateyInstall.ps1'.
See log for details.
Chocolatey installed 2/3 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- visualstudio2019buildtools (exited 1) - Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2019buildtools\tools\ChocolateyInstall.ps1'.
See log for details.
[Container] 2022/05/06 07:57:35 Command did not exit successfully choco install visualstudio2019buildtools -Y --force -limit-output exit status 1
[Container] 2022/05/06 07:57:35 Phase complete: INSTALL State: FAILED
[Container] 2022/05/06 07:57:35 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: choco install visualstudio2019buildtools -Y --force -limit-output. Reason: exit status 1
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|