FROM mcr.microsoft.com/windows/servercore:ltsc2019 RUN curl -SL --output vs_buildtools.exe https://aka.ms/vs/17/release/vs_buildtools.exe \ && (start /w vs_buildtools.exe \ --quiet --wait --norestart --nocache \ --installPath "%ProgramFiles(x86)%\Microsoft Visual Studio\2022\BuildTools" \ --noUpdateInstaller \ --add Microsoft.Component.MSBuild \ --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 \ --add Microsoft.VisualStudio.Component.VC.DiagnosticTools \ --add Microsoft.VisualStudio.Component.Windows11SDK.22261 \ --add Microsoft.VisualStudio.Component.VC.Redist.14.latest \ --add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core \ || IF "%ERRORLEVEL%"=="3010" EXIT 0) \ && del /q vs_buildtools.exe