DLL include in exe.file?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 11:33:28

You can merge the exe and the dlls with the ILMerge.exe tool

lmerge.exe /out:C:\SomePath\TheOnlyOneExe.exe 
    C:\....\bin\Debug\someexe.exe C:\....\bin\Debug\somedll.dll /t:exe

Take a look at ILMerage

You can download it from here

I realize this is an old issue, but for anyone thats looking for an answer I found the following link helpful for my situation. The following will also work for WPF.

http://blogs.msdn.com/b/microsoft_press/archive/2010/02/03/jeffrey-richter-excerpt-2-from-clr-via-c-third-edition.aspx

This method lets you embed dlls into your assembly by adding them to your project and set the Build Action property to Embedded Resource. The article does a good job of explaining this.

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