将DLL合并到EXE? [英] Merge DLL into EXE?
问题描述
我正在使用Microsoft Visual C#Express 2010年,请原谅我的低标准问题,但我觉得我是一个或两个等级低于其他人的实践: - /如果有人可以指出如何将这些DDL文件合并到我的EXE中,
对于.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我nsert2.dll
- 打开CMD和cd到您的目录。让我们说:
cd C:\test
- 插入上面的代码。
- code> /out:finish.exe 替换
finish.exe
与您想要的任何文件名。 - 在
/out:finish.exe
后面,您必须将要
的文件合并。
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.
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!
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
- 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屋!