Search code examples
c#.netvisual-studio-2010dll.net-assembly

Create a single "dll" starting from two independent projects (same solution)


I have a small solution with 2 projects "Class Library" independent, ie, no project is used as a reference in another.

The first project is called "Extension1" and the second "extension2". I would not want to use this solution in another project and having to reference the two dlls separately, I need to create a single dll "CustomExtension.dll" and that it has the two ("Extension1.dll" and "Extension2.dll") to reference only dll "CustomExtension.dll" on a new project using only the respective namespace. Is this possible?

PS: Windows 8 - Visual Studio 2010 Professional - C#


Solution

  • Might want to take a look at ILMerge. We use it in a lot of our projects for combining multiple dll's into one.

    http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx http://www.microsoft.com/en-us/download/details.aspx?id=17630