嵌入DLL到一个控制台应用程序 [英] embed a DLL into a console application
问题描述
可能重复:
嵌入在编译的可执行文件的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)
查看重复的问题在这里: <一href="http://stackoverflow.com/questions/72264/how-can-a-c-windows-dll-be-merged-into-a-c-sharp-application-exe">How可以在C ++ Windows动态链接库合并成一个C#应用程序EXE?
Check out duplicate question here: How can a C++ windows dll be merged into a C# application exe?
或
<一个href="http://stackoverflow.com/questions/666799/embedding-unmanaged-dll-into-a-managed-c-sharp-dll/11038376#11038376">Embedding非托管的DLL到一个托管的C#DLL
这篇关于嵌入DLL到一个控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!