DLL合并成EXE? [英] Merge DLL into EXE?
问题描述
我有两个,我想这在我的EXE文件,包括更容易地分发DLL文件。我读过一点在这里和那里如何做到这一点,即使是找到了一个好线程的这里和<一个href=\"http://stackoverflow.com/questions/7056486/how-to-use-ilmerge-to-merge-dlls-into-an-exe-file\">here,但它太复杂,我和我需要怎么做真正的基本指令。
I have two DLL files which I'd like to include in my EXE file to make it easier to distribute it. I've read a bit here and there how to do this, even found a good thread here, and here, but it's far too complicated for me and I need real basic instructions on how to do this.
我使用Microsoft Visual C#防爆preSS 2010了,请原谅我的低标准的问题,但我觉得我下面的其他人的expercise一个或两个级别: - /如果有人能指出如何在一步一步的指导,这些DDL文件合并到我的EXE,这将是的真的真棒!
I'm using Microsoft Visual C# Express 2010, and please excuse my "low standard" question, but I feel like I'm one or two level below everyone else's expercise :-/ If someone could point out how to merge these DDL files into my EXE in a step-by-step guide, this would be really awesome!
推荐答案
有关.NET框架4.5
For .NET Framework 4.5
ILMerge.exe /target:winexe /targetplatform:"v4,C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /out:finish.exe insert1.exe insert2.dll
- 开启CMD和CD到您的目录。比方说:
CD C:\\测试
- 将上述code。
-
/out:finish.exe
替换finish.exe
你想要的任何文件名。 - 后面的
/out:finish.exe
你必须给你想成为的文件
结合。
- Open CMD and cd to your directory. Let's say:
cd C:\test
- Insert the above code.
/out:finish.exe
replacefinish.exe
with any filename you want.- Behind the
/out:finish.exe
you have to give the files you want to be combined.
这篇关于DLL合并成EXE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!