将DLL嵌入已编译的可执行文件中

匆匆过客 提交于 2020-08-06 10:22:31

问题:

Is it possible to embed a pre-existing DLL into a compiled C# executable (so that you only have one file to distribute)? 是否可以将预先存在的DLL嵌入到已编译的C#可执行文件中(以便仅分发一个文件)? If it is possible, how would one go about doing it? 如果有可能,人们将如何去做呢?

Normally, I'm cool with just leaving the DLLs outside and having the setup program handle everything, but there have been a couple of people at work who have asked me this and I honestly don't know. 通常,我很酷,只是把DLL放在外面,让安装程序处理所有事情,但是有几个人在问我这个问题,老实说我不知道​​。


解决方案:

参考一: https://stackoom.com/question/nJF/将DLL嵌入已编译的可执行文件中
参考二: https://oldbug.net/q/nJF/Embedding-DLLs-in-a-compiled-executable
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!