我正在尝试在我的代码中使用外部库。我已将它添加为 Visual Studio 中的参考,并且自动完成之类的工作正常,我可以在输入代码时看到所有可用的方法。它也可以在没有任何警告或错误的情况下编译。
DLL 与可执行文件位于同一目录中。
但是,我收到此错误:
"Unhandled Exception: System.TypeInitializationException: The type initializer fo
r '<Module>' threw an exception. ---> System.DllNotFoundException: Unable to loa
d DLL 'yeppp': The specified module could not be found. (Exception from HRESULT:
0x8007007E)
at Yeppp.Library.yepLibrary_Init()
at Yeppp.Library.Init()
at .cctor()
--- End of inner exception stack trace ---"
我究竟做错了什么?