在exe中包括dll吗? [英] Including dll's in the exe?

查看:28
本文介绍了在exe中包括dll吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
.NET windows应用,可以压缩成单个 .exe?

我有一个依赖于多个 dll 的项目,一旦我编译它,它要求我在与 dll 相同的文件夹中运行 .exe.我可以将它们打包在一起,这样我就不必这样做了吗?

I have a project that relies on several dlls and once I compile it, it requires that I run the .exe in the same folder with the dlls. Can I package them together so I don't have to do that?

作为参考,我使用的是 C#

For reference, I'm using C#

推荐答案

您可以使用 ILMerge 将它们合二为一.

You can use ILMerge to combine them into one.

这篇关于在exe中包括dll吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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