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

安稳与你 提交于 2019-12-07 05:57:00

问题


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:


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.



来源:https://stackoverflow.com/questions/5481192/how-do-i-strongly-name-an-unmanaged-c-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!