Link to home
Start Free TrialLog in
Avatar of Kramarich
KramarichFlag for United States of America

asked on

Create one DLL from a solution with two or more projects

I have a solution that currently has two projects.  Each project is a class library.  When I build the solution, two DLLs are created, one for each project.  I would like to build the solution and produce one DLL that incorporates both class libraries.  Can this be done from within Visual Studio 2008 or do I need to use something like ILmerge?
Avatar of JackOfPH
JackOfPH
Flag of Philippines image

Put all the class in one project, don't split it into two project, If you want to produce one dll.

That is I think the simplest thing to do.

REgards,

Joseph
ASKER CERTIFIED SOLUTION
Avatar of vb_student
vb_student
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kramarich

ASKER

Thanks all.
Jack, thanks.  I thought of combining the projects but it just bugged me that I couldn't keep separate projects and have one dll.
x77, thanks.  This might be the way I have to do this but you would think there would be a way to do this from within the VS solution.
vb student, thanks.  I tried this but I still ended up with two DLLs - unless I did something wrong.  I'll have to play around with this a little more.  Maybe two DLLs will work after all.
Thanks again everyone!
Ken
Update.  It turns out that using the same name for the Root namespace in each project worked for me.  It didn't give me one DLL but it did place both projects into the same root namespace which I can live with.
None.