VS: BuildTools in AWS CloudBuild
I have docker image with installed VS2019 BuildTools. BuildTools are installed at C:\VSBuildTools
. I try to build AWS CPP SDK. cmake generates project files and when I try to build sollution, I get error:
C:\Src\cmakepwd\x64dll\ZERO_CHECK.vcxproj(36,3): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.Default.props" was not found. Confirm that the expression in the Import declaration "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\\Microsoft.Cpp.Default.props" is correct, and that the file exists on disk.
Path to Microsoft.Cpp.Default.props
is wrong. It should be C:\VSBuildTools\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.Default.props
.
Same docker image is used for build of our product and it works fine. I use cmake-3.22.2-windows-x86_64.
Edited by Brad King