我可以在exe(在Visual Studio)中包含dll吗? [英] Can I include dll in exe (in Visual Studio)?

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

问题描述


可能重复:

.NET的Windows应用程序,可以压缩成一个.exe吗?

要运行我的应用程序,我需要 AxInterop.WMPLib.dll Interop。位于Debug和Release文件夹中的WMPLib.dll 有没有办法将这些DLL包含到exe中,所以我的应用程序只能在一个文件中使用?

To run my App I need AxInterop.WMPLib.dll and Interop.WMPLib.dll that are located in Debug and Release folder. Is there any way to include those dlls into exe so my app is available in one file only?

推荐答案

只要你的DLL是.NET程序集,那么 ILMerge 应该能够将您的exe及其所有依赖关系转换为单个文件。

As long as your DLLs are .NET assemblies, then ILMerge should be able to combine your exe and all of its dependencies into a single file.

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

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