dll inside a dll?

G

Guest

is it possible to reference a dll that is inside another dll?

in our program we have a solution called functions.dll and we are also using
the mysql.data.dll in all our other solutions. is there a way to reference
the mysql.data.dll in each solution by only making the functions.dll one of
the references? i tried it by just having the "using mysql" in the
functions.dll but it does not seem to work. is this possible or not?

thanx in advance for the help
 
S

Sean Hederman

You need to reference an assembly which you directly use in all assemblies
in which you use it. Directly using an assembly means using any of the types
declared in the assembly, or calling any methods that return or take as
parameters types declared in the assemblies. To do what you want to do,
you'd have to completely wrap all mysql.data types within functions that do
not accept or return any types declared in mysql.data.

So, the basic answer is that it's better to just reference the mysql.data
assembly in functions and in your other projects.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top