VS created app in C++ redistribution missing dll ?

Justin Tabatchnick 1 Reputation point
2022-08-31T18:29:53.63+00:00

windows 10 app created in VS 2019 will not run on targeted computer . getting system error MSVCP140D , VCRUNTIME140D.dll , and ucrtbased.dll are missing . Followed https://learn.microsoft.com/en-us/cpp/windows/deploying-visual-cpp-application-by-using-the-vcpp-redistributable-package?view=msvc-170 and it still is missing required dlls . What am I doing wrong?

Thanks

Justin Tabatchnick

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

2 answers

Sort by: Most helpful
  1. RLWA32 30,101 Reputation points
    2022-08-31T18:38:01.73+00:00

    You're attempting to distribute a debug build of your application. The debug versions of runtime dlls are not included in the redistributable packages. You should distribute a release version of your application. Just so you know, the debug versions of dlls are not redistributable according to the related licensing agreements for visual studio.

  2. Justin Tabatchnick 1 Reputation point
    2022-08-31T19:09:53.617+00:00

    Fixed it !! didn't realize I was trying to run the debug version on a target that did not have VS installed. Switched to "release" at build time.