Skip to content

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:

  1. Create a container with the created image
  2. Open a command line in this container
  3. dir "C:\Program Files (x86)%\Microsoft Visual Studio"
  4. 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 :

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!

Edited by Astre Benjamin