DLL include in exe.file?

后端 未结 3 1694
心在旅途
心在旅途 2021-01-15 06:45

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

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

3条回答
  •  [愿得一人]
    2021-01-15 06:50

    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
    

提交回复
热议问题