Possible Duplicate:
Merging .net managed dlls
I create a test project in which I referenced a dll from some other project. When I build my test project, I see different dll for test project and the referenced dll. I want to wrap both dll's in a single dll.
How can I do it.
Take a look at ILMerge:
http://www.codeproject.com/KB/dotnet/mergingassemblies.aspx
With ILMerge you can merge a bunch of assemblies by running the command like:
ilmerge /out:MergedAssembly.dll ProjectAssembly1.dll ProjectAssembly2.dll ProjectAssembly3.dll
This will merge 3 assemblies into a single one.
来源:https://stackoverflow.com/questions/4416632/how-to-wrap-multiple-dll-in-a-single-dll