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

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

问题描述

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

要运行我的应用程序,我需要位于 Debug 和 Release 文件夹中的 AxInterop.WMPLib.dllInterop.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天全站免登陆