In doing. NET underlying encoding process, in order to function independently, it is possible to generate multiple DLLs, reference is very inconvenient. In this regard, Microsoft provides a Ilmerge tool, the original DOS tool, you can combine multiple DLLs into one. After the download is complete, you need to install it and then enter it via DOS command. The specific usage is as follows:
D:\Program FILES\MICROSOFT\ILMERGE>ILMERGE/LOG:LOG.TXT/TARGETPLATFORM:V4/
Out:merge.dll AnalysisLibrary.dll USBClassLibrary.dll
Description: The purpose of this operation is to merge the AnalysisLibrary.dll and USBClassLibrary.dll class libraries under the current directory into Merge.dll in the form of. NETFramework 4.0 (V4).
Where: The/log:log.txt command is the log in the build process that is written to the Log.txt file. Out:merge.dll: is the output file. AnalysisLibrary.dll USBClassLibrary.dll is a source file, and multiple source files are separated by spaces.
Of course, some people have added the interface, if you are not accustomed to DOS commands, you can download the GUI interface tool here. Please download version 1.9 or later, version 1.0 is only supported to Framework2.0. The interface tool is relatively simple, here is not redundant.
Loading:
. NET to package multiple DLLs as a single DLL (Ilmerge)
. NET to package multiple DLLs as a single DLL (Ilmerge)