简体   繁体   English

在 Release 中缺少 DLL 但在 Debug 中没有

[英]Missing DLL in Release but not in Debug

I am porting an old MFC application from Visual Studio 2008 to Visual Studio 2019.我正在将旧的 MFC 应用程序从 Visual Studio 2008 移植到 Visual Studio 2019。

In the process, an old DLL library has been incorporated into the source code to remove the library building step in development.在此过程中,一个旧的 DLL 库已被合并到源代码中,以消除开发中的库构建步骤。

Now, this program runs and functions perfectly when debugging in the default Debug configuration;现在,这个程序在默认的 Debug 配置下调试时可以完美运行; however, in the Release configuration I get:但是,在发布配置中,我得到:

The code execution cannot proceed because MSVCR90.dll was not found由于未找到MSVCR90.dll ,代码执行无法继续

I imagine this means that MSVCR90d.dll is successfully found in Debug mode, but cannot find the release version of the DLL for some reason.我想这意味着在调试模式下成功找到了MSVCR90d.dll ,但由于某种原因找不到 DLL 的发布版本。

I've tried all the general steps of downloading Visual C++ Runtime redistributables, changing to statically linked runtime libraries, and most other things found in the first results on Google.我已经尝试了下载 Visual C++ 运行时可再发行组件的所有一般步骤,更改为静态链接的运行时库,以及在 Google 的第一个结果中找到的大多数其他内容。

All intermediate versions of Visual Studio are installed locally on the development machine (2008, 2010, 2015, 2017, and 2019). Visual Studio 的所有中间版本都本地安装在开发机器上(2008、2010、2015、2017 和 2019)。

Is there anything else I could try?还有什么我可以尝试的吗?

如果您安装 Dependency Walker https://dependencywalker.com并准确查看发布和调试版本之间缺少的内容以及差异,则可以避免所有猜测。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM