Kramarich
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
ASKER
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.
ASKER
None.
That is I think the simplest thing to do.
REgards,
Joseph