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

Developer technologies | Visual Studio | Other
{count} votes

3 answers

Sort by: Most helpful
  1. RLWA32 49,666 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.

    0 comments No comments

  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.

    0 comments No comments

  3. DEMOULIN Anne-Sophie 1 Reputation point
    2024-03-27T14:50:05.1666667+00:00

    Hello,

    I need to debug my app on a remote client and i'm searching the debug dll related here. How can i found them ? I can't run my project in release for the moment.


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.