- Home /
DLL-Integration leads to endless integration of other dlls
Hello Community
currently I am trying to integrate the pulse from a Zephyr HxM wrist band into Unity 2019.2.5f1. Therefore I am using an external dll from a github projects, that connects via bluetooth to the wrist band. In the following image I used the dll for an C# Console-Application, which worked perfectly fine.
After the approval that it worked in C#, I imported the dll to the Asset/Plugin Folderin Unity to use it in my project. Sadly for some reason Unity states the following error:
'Assets/Plugin/HRM.dll' will not be loaded due to errors: Unable to resolve reference 'MGT Utilities'. Is the assembly missing or incompatible with the current platform?
When I add the needed DLLs in the asset folder, I receive continuously new errors in form of missing DLLs. At a point it requires the Windows.winmd and even after that it demands other dlls.
1. Is there a solution in Unity to fix this problem automatically ?
2. If not is there even a solution to fix it probably?
3. Are there other ways to integrate the pulse in Unity ?
I would appreciated much if someone could help me, because I am kinda new to Unity and I need the integration as part of my bachelor thesis.
Hello fellow student.
Unity runs on all sorts of platforms. It does that by using .Net Core as portable subset of .Net. Unity doesnt include windows specific DLLs per default, because those only work on Windows.
Yes, you do need to add all dependency dlls to unity. No there is no way to do that automatically. (at least as far as I know).
Checkout this guide: IL2CPP-WindowsRuntimeSupport maybe it helps.