包括DLL的EXE文件?文件、DLL、EXE

2023-09-07 01:48:55 作者:眼眸深似海

可能重复:   .NET Windows应用程序,它可以将COM pressed成一个.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.