【发布时间】:2016-01-16 04:28:52
【问题描述】:
我遇到了一个问题,我的 UWP 应用程序使用 C#,但它使用了同一解决方案中的 Windows 运行时组件 C++ Dll。当我在调试中运行我的应用程序时,我看不到任何问题。但是当我在 Release (x86) 中运行时,我得到以下异常(发生在 VS 调试器中):
The specified module could not be found. (Exception from HRESULT: 0x8007007E
at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD)
at CppFunction()
at CsharpFucntion()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
我的 C++ 组件确实与 oppenssl 链接(我从 microsoft github 页面手动构建)。我已经尝试重建 openssl 组件只是为了看看这是否是问题所在,但它没有帮助。
我还验证了 DLL 和 WINMD 文件存在于 bin\x86\Release\AppX 文件夹中
【问题讨论】:
标签: c# c++ win-universal-app