我在我的 c# 项目中使用 EasyHook 并包含 easyhook.dll 作为项目的参考。我尝试添加 easyhook32.dll 和 easyhook64.dll,但是 Visual Studio 说
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
当我尝试在我的程序中使用 EasyHook.dll 时,EasyHook 会System.DllNotFoundException
因为找不到EasyHook32.dll
.
我试过把它放在 bin 和 debug 文件夹中,但是似乎都没有解决这个问题。我还尝试以管理员身份运行 VS 和应用程序的编译版本,但无济于事。
有任何想法吗?
我在 Visual Studio 2013 和最新版本的 EasyHook 上使用 .NET 4.0.x