I'm using EasyHook in my c# project and have included easyhook.dll as a reference for the project. I tried to add easyhook32.dll and easyhook64.dll, however Visual Studio says
A reference to [path/to/easyhook32.dll] could not be added. Please make sure the file is accessible, and that it is a valid assembly or COM component
When I attempt to use EasyHook.dll in my program EasyHook throws a System.DllNotFoundException
because of not being able to find EasyHook32.dll
.
I have tried putting it in the bin and debug folders however, neither seem to fix the issue. I have also tried running both VS and a compiled version of the application as administrator, to no avail.
Any ideas?
I'm using .NET 4.0.x on Visual Studio 2013 and the latest release of EasyHook