Embedding DLLs in a compiled executable

前端 未结 16 3041
情深已故
情深已故 2020-11-21 07:07

Is it possible to embed a pre-existing DLL into a compiled C# executable (so that you only have one file to distribute)? If it is possible, how would one go about doing it?<

16条回答
  •  不要未来只要你来
    2020-11-21 07:54

    If they're actually managed assemblies, you can use ILMerge. For native DLLs, you'll have a bit more work to do.

    See also: How can a C++ windows dll be merged into a C# application exe?

提交回复
热议问题