PDA

Click to See Complete Forum and Search --> : compiling two dlls as one?


MrPolite
Feb 13th, 2003, 07:54 PM
I'm making a class library (it's a series of controls to be used with windows forms). I'm using another dll (utility) in this class library. And so when I compile the project I will end up with two dlls. One is the class library and another the utility dll. I'm just wondering if there is a way to just make one dll out of these two?
Also how can I use this in a project? I tried adding my dll to a windows form project, and adding the utility dll to the refrences of that project. But when I try to use any of the controls that I have in my class library, I get an error saying that the utility dll was not found.
(btw it works fine if I add the class library project in the solution, rather than including its dll only.)

any ideas?

MrPolite
Feb 14th, 2003, 12:29 PM
bump

Pirate
Feb 14th, 2003, 01:27 PM
Just wondering , Does your app have two projs ??

MrPolite
Feb 14th, 2003, 07:45 PM
Originally posted by Pirate
Just wondering , Does your app have two projs ?? yes. The control library is a solution with two projects. One is the utility and the other contains the controls. I want to use the whole thing (the solution) in another project. It works fine if I just add the two projects to another solution, but it doesnt work if I just want to add the compiled dlls of those two projects

MrPolite
Feb 14th, 2003, 08:25 PM
aaah ok resolved:
In the project properties: both projects have to have the same name for Assembly Name


edit: what an idiot I am, it made two dlls with teh same name, but different :( HELP!

Edneeis
Feb 14th, 2003, 09:36 PM
You have to put them in the same project and compile it to one dll that I believe is the only way.

MrPolite
Feb 14th, 2003, 09:52 PM
Originally posted by Edneeis
You have to put them in the same project and compile it to one dll that I believe is the only way. yeah I ended up doing that. I wish there was a way to keep them in separate projects :(

Pirate
Feb 15th, 2003, 07:58 AM
umm , What if you combined your two projs in one.?? Will you still have the same output ?:confused:

MrPolite
Feb 15th, 2003, 05:46 PM
Originally posted by Pirate
umm , What if you combined your two projs in one.?? Will you still have the same output ?:confused: read ^, I said I did that, nm