[英]C# - Using external CLR DLL
我正在嘗試將外部庫與我的代碼一起使用。 我已將其添加為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 ---"
我究竟做錯了什么?
http://docs.yeppp.info/cs/index.html#GettingStarted
如文章所述,您還需要部署yeppp.dll。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.