If you try to install Build Tools for Visual Studio 2017 into a Windows Server 2019 or newer container image, such as mcr.microsoft.com/windows/servercore:1809 or mcr.microsoft.com/windows/servercore:ltsc2019, the install will quickly terminate without error and without installing anything. This is due, in part,
Use or contribute your own Dockerfiles on GitHub to help others build similar workloads with Visual Studio Build Tools.
The size and permutations of Build Tools 2017 container images are too great to publish official images, but here's how you can create your own tailored images.
The .NET Framework may not be correctly installed into a Windows Server Core container, and managed code - like the compilers - may fail. The documentation was updated with how to work around this.
Preview new documentation for how to install Build Tools for Visual Studio 2017 into a Docker container.
Follow this guidance to install Build Tools for Visual Studio 2017 into a Docker container and save the image for later.