嵌入DLL到一个控制台应用程序控制台、应用程序、DLL

由网友(把猪还给我)分享简介:可能重复: 嵌入在编译的可执行文件的DLL Possible Duplicate:Embedding DLLs in a compiled executable 是否有可能嵌入一个DLL到一个控制台应用程序如果有可能,如何将一去这样做呢?Is it possible to embed a DLL into...

可能重复:   嵌入在编译的可执行文件的DLL

Possible Duplicate: Embedding DLLs in a compiled executable

是否有可能嵌入一个DLL到一个控制台应用程序如果有可能,如何将一去这样做呢?

Is it possible to embed a DLL into a console application If it is possible, how would one go about doing it?

通常情况下,我酷只有离开以外的dll但已经有几个人在工作中谁也问我这个,我真的不知道。

Normally, I'm cool with just leaving the DLLs outside but there have been a couple of people at work who have asked me this and I honestly don't know.

推荐答案

如果库也是.NET中,可以使用ILMerge。

If the libraries are also .NET, you can use ILMerge.

HTTP://www.$c$ cproject.com/Articles/9364/Merging-NET-assemblies-using-ILMerge

修改(学习后,原产code)

查看重复的问题在这里: How可以在C ++ Windows动态链接库合并成一个C#应用程序EXE?

Check out duplicate question here: How can a C++ windows dll be merged into a C# application exe?

Embedding非托管的DLL到一个托管的C#DLL

阅读全文

相关推荐

最新文章