vs_buildtools.exe not running in the container

Apparently Build Tools can only be installed if the machine has a .NET framework. Since Nanoserver does not support .NET frameworks, then the executable will not run. I installed it in Servercore, even though it is not optimal since it is heavier.

Source: https://docs.microsoft.com/en-us/dotnet/architecture/microservices/net-core-net-framework-containers/net-container-os-targets


At the time of writing, vs_buildtools.exe is a 32-bit executable, and Nano Server only supports 64-bit executables.

https://docs.microsoft.com/en-us/windows-server/get-started/getting-started-with-nano-server

It is similar to Windows Server in Server Core mode, but significantly smaller, has no local logon capability, and only supports 64-bit applications, tools, and agents.