How to wrap multiple dll in a single dll

12,260

Take a look at ILMerge:

http://www.microsoft.com/downloads/en/details.aspx?familyid=22914587-b4ad-4eae-87cf-b14ae6a939b0&displaylang=en

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.

Share:
12,260
Vaibhav Jain
Author by

Vaibhav Jain

IT professional

Updated on June 04, 2022

Comments

  • Vaibhav Jain
    Vaibhav Jain almost 2 years

    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.