我有一个使用一些 native 库的 Windows 运行时组件 (the PJSIP library)。此组件用于 Windows Phone 8 应用程序,当我尝试从 native 组件调用函数时,出现以下错误:
An exception of type 'System.IO.FileNotFoundException' occurred in TestingApp.DLL but was not handled in user code
在 mscorlib 中使用源代码(在异常详细信息中)。
谁能指出可能导致此错误的原因以及我如何找出实际缺少的内容?当我尝试在我的 Windows 运行时组件中放置断点时,在运行时断点显示为已禁用。
问候, 塔玛斯
最佳答案
将缺少的dll
添加到项目中(就像添加一个新文件一样)并将其标记为内容。然后从此位置引用 dll。这可能会解决您的问题。
我猜它没有工作,因为它没有部署在您的应用程序中。
关于c# - 运行 Windows Phone 8 应用程序时出现 System.IO.FileNotFoundException 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14833357/