DLL包括exe.file?DLL、exe、file

2023-09-04 00:35:34 作者:耀月

我建立在C#中的一个项目。 从另外一个项目中,我有5个的DLL。

I build a project in C#. From another project I have 5 DLLs.

是否有可能包括在EXE的DLL,我只给1文件的人,而不是X档案?

Is It possible to include the DLL in the exe, that I only give 1 File to people and not x files?

我试过ILMerge,但输出文件曾经打开命令提示符与应用程序 - 无用

I tried ILMerge, but the output file ever opened a Command prompt with the application - useless.

推荐答案

您可以合并exe文件,并与ILMerge.exe工具

You can merge the exe and the dlls with the ILMerge.exe tool

lmerge.exe /out:C:\SomePath\TheOnlyOneExe.exe 
    C:\....\bin\Debug\someexe.exe C:\....\bin\Debug\somedll.dll /t:exe