将DLL合并到EXE? [英] Merge DLL into EXE?

查看:183
本文介绍了将DLL合并到EXE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个DLL文件,我想包括在我的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 

ILMerge


  1. 打开CMD和cd到您的目录。让我们说: cd C:\test

  2. 插入上面的代码。

  3. code> /out:finish.exe 替换 finish.exe 与您想要的任何文件名。

  4. /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

ILMerge

  1. Open CMD and cd to your directory. Let's say: cd C:\test
  2. Insert the above code.
  3. /out:finish.exe replace finish.exe with any filename you want.
  4. Behind the /out:finish.exe you have to give the files you want to be combined.

这篇关于将DLL合并到EXE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆