# escape=` FROM mcr.microsoft.com/windows/servercore:ltsc2016-amd64 ENV COMPLUS_NGenProtectedProcess_FeatureEnabled=0 RUN ` # Install .NET Fx 4.8 powershell -Command ` $ProgressPreference = 'SilentlyContinue'; ` [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ` Invoke-WebRequest ` -UseBasicParsing ` -Uri https://download.visualstudio.microsoft.com/download/pr/2d6bb6b2-226a-4baa-bdec-798822606ff1/8494001c276a4b96804cde7829c04d7f/ndp48-x86-x64-allos-enu.exe ` -OutFile dotnet-framework-installer.exe ` && start /w .\dotnet-framework-installer.exe /q ` && del .\dotnet-framework-installer.exe ` && powershell Remove-Item -Force -Recurse ${Env:TEMP}\* ` ` # Apply latest patch && powershell -Command ` $ProgressPreference = 'SilentlyContinue'; ` [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ` Invoke-WebRequest ` -UseBasicParsing ` -Uri https://catalog.s.download.windowsupdate.com/d/msdownload/update/software/secu/2026/07/windows10.0-kb5120702-x64-ndp48_69e7c6911ca109d1f6e23596c9ae9f248078da0a.msu ` -OutFile patch.msu; ` && mkdir patch ` && expand patch.msu patch -F:* ` && del patch.msu ` && dism /Online /Quiet /Add-Package /PackagePath:C:\patch\windows10.0-KB5120702-x64-ndp48.cab ` && rmdir /S /Q patch ` ` # ngen .NET Fx && %windir%\Microsoft.NET\Framework64\v4.0.30319\ngen update ` && %windir%\Microsoft.NET\Framework\v4.0.30319\ngen update