Unable to install VS BuildTools into Windows image
The BuildTools setup in Windows image doesn't work (see Dockerfile-windows line 29).
No error returned but the components aren't installed in the image. So the image is labelled "successfully" generated. But you can verify the problem by:
- Create a container with the created image
- Open a command line in this container
dir "C:\Program Files (x86)%\Microsoft Visual Studio"
- See the absence of "2019" folder which is requested as installPath
Another sign of the problem is the windows test step in the CI which don't work (and it is expected since the image is incomplete).
As you can see in these logs extracted from inside images, there are some errors :
- test1 bootstrapper.log
- test1 installer.log
- test1 setup.log
- test2 bootstrapper.log
- test2 installer.log
- test2 setup.log
Some of them are related to components not compatible to the Windows version used for the docker image. But after many tested version, I have not found a compatible combination.
Some others lines are perhaps error related...
This project code is inspired by the official Microsoft topic : https://docs.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2022. So this would work!