References

G

Guest

I have a solution with class library projects. One class library we'll call
Project B is dependant on another class library project we'll call Project A.

I also have a setup project that installs those librarys in c:\ program
files\mydlls. It also installs them in the GAC.

Now, my problem is that if I have a new solution that wants to use Project B
it also has to reference Project A to do so. I wish that all they would have
to do is reference Project B and be done.

Is it possible?
 
G

Guest

If an assembly has a dependency on another assembly, that's the way it is.
If you have control over the code, consider refactoring out the portion of
code that is needed and put it into both assemblies.
Another possible alternative is to use ILMerge to merge both into a third
assembly, but this all really sounds more like an architectural defect if it
is that important.
Peter
 

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