How are debug dll's like ucrtbased.dll installed?

Frederick Nylander 0 Reputation points
2024-01-23T18:48:21.3133333+00:00

on my Windows 10 debvelopment computer, an uninstall of a program may have removed ucrtbased.dll and other non-redistributable ".dll"l files from my computer. The dll is not located in "c:\windows\syswosw64" folder where VS2022 created "Hello World" looks for it. I am asking a) what (debug) dll'ss are installed by VS2022 and how can they be restored is accidentlly deleted? I have already done an uninstall and re-install, and a repair of Visual Studio Pro 2022

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,430 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 56,946 Reputation points
    2024-01-23T20:49:22.9866667+00:00

    ucrtbased is debug version of the C++ runtime. It is only designed for development. The debug version is part of the Win10 SDK. If you install VS with C++ workload then it'll get installed. Note that the DLL is actually copied from the SDK directory to the system directory so it is in the search path. You could just go copy the binary yourself as well.

    If an app installer removed that binary then the app installer is installing a file it shouldn't as that DLL is a runtime DLL. If this is a current app installer then I'd notify the publisher so they can address the issue. If they need a copy of that binary then the "correct" approach would be to keep a copy in their local install directory instead. Of course that could cause problems if they don't also include other runtime DLLs that might rely on it. But this is a debug version of the DLL anyway so they really shouldn't be shipping a copy of a debug DLL as that isn't going to work on most peoples machines.

    0 comments No comments

  2. RLWA32 47,116 Reputation points
    2024-01-23T20:57:10.27+00:00

    In my Windows 10 22H2 system with VS2022 Community I installed two versions of the Windows 10 SDK (10.0.19041.0 and 10.0.20348.0). The version of ucrtbased.dll that is in the System32 and SysWOW64 folders came from the more recent 20348 SDK. C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x86\ucrt C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64\ucrt

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.