Mar*_*Gom 5 c# dll sdk biometrics
我想在C#项目中包含所有需要的dll,所以你不需要将它们复制到system32并注册它们.
我尝试过costura.fody和其他方式,但我不能让它工作......
我在项目中创建了一个"libs"文件夹,然后我复制了所有的dll.然后我添加一个这个DLL(另一个是依赖,我知道)作为参考.
但我得到这个错误:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in myapp.exe
Additional information: Could not retrieve COM class generator for component {00853A19-BD51-419B-9269-2DABE57EB61F} Due to the following error: 80040154 Unregistered class (Exception of HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Run Code Online (Sandbox Code Playgroud)
当我将所有dll复制到我的system32文件夹并注册其中一个时:
regsvr32 %windir%\system32\zkemkeeper.dll
Run Code Online (Sandbox Code Playgroud)
一切顺利......
编辑:
正如我所说,zkteco(生物识别扫描仪)的sdk有多个dll.但我只能添加一个作为参考.其他人抛出我的下一个错误:
A reference to XXX.dll could not be added. Please make sure that the file is accesible, and that it is a valid assembly or COM component.
所以我不知道这里有什么问题......
dll的:
我的参考:
每个libs的属性:
我的文件夹包含所有dll:
每个libs的属性: