我有一个项目使用了使用 IKVM 转换的 Java 库.我添加了创建的 DLL 以及所有可能的 IKVM DLL 作为对我项目的引用,但是当我运行它时,我收到以下运行时错误:
System.IO.FileNotFoundException : Could not load file or assembly 'core, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
我不太确定如何调试此错误。有没有办法确切知道缺少哪种类型?根据描述,我猜这是生成的 DLL(来自 Java 库),但我已将其正确添加为引用。
我还做错了什么?
最佳答案
您可以使用 Fusion Log Viewer调试 .NET 应用程序中的程序集加载问题。
此外,Process Monitor在识别一般文件加载问题时非常有用。
关于c# - 如何调试 "Could not load file or assembly"运行时错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4602912/