Can not find ucrt dlls when using VS2019 and windows-sdk 8.1

Still experimenting with latest VS2019, when I try to rebuild Panda3D with an older Windows SDK, I get the following error :

Version: 1.10.6
Platform: win-amd64
Using Python 3.7
Using Windows SDK 8.1
Using Visual Studio 2019
Using MSVC 14.2
Target OS: windows
Target arch: x64
Using Universal CRT 10.0.18362.0
Traceback (most recent call last):
  File "makepanda/makepanda.py", line 637, in 
    SetupBuildEnvironment(COMPILER)
  File "C:\Users\User\build\makepanda\makepandacore.py", line 2952, in SetupBuildEnvironment
    SetupVisualStudioEnviron()
  File "C:\Users\User\build\makepanda\makepandacore.py", line 2866, in SetupVisualStudioEnviron
    CopyAllFiles(GetOutputDir() + "/bin/", win_kit + "Redist\\ucrt\\DLLs\\" + arch + "\\")
  File "C:\Users\User\build\makepanda\makepandacore.py", line 3146, in CopyAllFiles
    for x in GetDirectoryContents(srcdir, ["*"+suffix]):
  File "C:\Users\User\build\makepanda\makepandacore.py", line 657, in GetDirectoryContents
    files = os.listdir(dir)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Windows Kits\\10\\Redist\\ucrt\\DLLs\\x64\\'

The path that trigger the error does not exist indeed, but C:\Program Files (x86)\Windows Kits\10\Redist\10.0.18362.0\ucrt\DLLs\x64 do actually exist

I’m not a Windows developper, so I might have goofed somewhere though :slight_smile: In the mean time I will switch back to VS2015