How do I strongly name an Unmanaged C++ Dll?

2019-06-20 14:06发布

I'm working on a C# application which uses the EasyHook library for DLL Injection. EasyHook requires that any application using it be strongly named. In order to strongly name the application I need to make sure that all the libraries I use are strongly named as well.

This is easy to do for all of my managed libraries, but I also have an unmanaged c++ library which I need to strongly name. After some searching I can't seem to find a way to sign my unmanaged dll, even with the source code. Can this be done, and if so what do I need to do?

Thanks for any suggestions or assistance!

1条回答
Viruses.
2楼-- · 2019-06-20 14:21

I assume that you're calling the DLL using P/Invoke.

You don't need to (and cannot) strongly-name it.

Strong naming is a .Net concept that applies to managed assemblies (and C++/CLI); it has no meaning for unmanaged libraries.

查看更多
登录 后发表回答