首页 > 解决方案 > 在 Windows Server 2012 上运行 VS2019 编译的应用程序需要什么?

问题描述

最近我用 VS2019 编写了一个程序,调用用 C++ (x64) 编译的 Tesseract OCR dll 并在 .NET Windows 窗体上显示结果。在我的 Windows 10 开发 PC 上一切正常。当部署到 Windows Server 2012 (x64) 时,它崩溃了,抱怨找不到 C++ dll。

我尝试了什么:


更新:

我使用了@Fenixil 建议的 Dependency Walker,但未找到以下 dll:

这些 dll 可以在我的开发 PC 中找到,在 C:/Windows/WinSxS 中,在不同目录下有多个同名文件。它们属于某些 Windows SP 更新,还是在 Win10 平台 API 中?安装它们而不是简单地将它们复制到生产服务器的最佳方法是什么?

标签: c++.netwindowsvisual-studio-2019windows-server

解决方案


vc_redist 有多个版本,您需要提供一个在您的应用程序中使用的版本。是一些与 vc_redist not found 的讨论,可能与您的问题有关。

您可以使用Dependency Walker工具检查系统中缺少哪些 dll


推荐阅读