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

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

问题描述

我有两个 DLL 文件,我想将它们包含在我的 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.

我正在使用 Microsoft Visual C# Express 2010,请原谅我的低标准"问题,但我觉得我比其他人的经验低一两个级别:-/如果有人能指出如何合并这些在分步指南中将 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 Framework 4.5

For .NET Framework 4.5

ILMerge.exe /target:winexe /targetplatform:"v4,C:Program FilesReference AssembliesMicrosoftFramework.NETFrameworkv4.0" /out:finish.exe insert1.exe insert2.dll

ILMerge

  1. 打开 CMD 并 cd 到您的目录.比方说:cd C: est
  2. 插入上面的代码.
  3. /out:finish.exe 用你想要的任何文件名替换 finish.exe.
  4. /out:finish.exe 后面,你必须提供你想要的文件
  1. Open CMD and cd to your directory. Let's say: cd C: est
  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天全站免登陆