regsvr32.exe fails with exit code 3 in Windows Server 2022 Docker container
The issue is that I run Windows server 2022 as a host of a virtual machine (on windows 11 or MacOS), and this image is used for docker: mcr.microsoft.com/dotnet/sdk:5.0-windowsservercore-ltsc2022
And when I run regsvr32.exe s
for a certain dll file, it fails with exit code 3 inside containers, which means “LoadLibrary failed” according to https://devblogs.microsoft.com/oldnewthing/20180920-00/?p=99785.