这个问题在这里已经有了答案:
9年前关闭。
Possible Duplicate:
.NET windows application, can it be compressed into a single .exe?
要运行我的应用程序,我需要
AxInterop.WMPLib.dll
和 Interop.WMPLib.dll
位于 Debug 和 Release 文件夹中。有没有办法将这些 dll 包含到 exe 中,以便我的应用程序仅在一个文件中可用?
最佳答案
只要您的 DLL 是 .NET 程序集,那么 ILMerge应该能够将您的 exe 及其所有依赖项合并到一个文件中。
关于visual-studio - 我可以在 exe(在 Visual Studio 中)中包含 dll 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/476993/