Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
4.20/5 (2 votes)
See more:
I have a dll (for example A.dll) which references to an other dll( say B.dll), now when i use A.dll in my app, my application can also see B.dll,i want B.dll to be not reached to my app.
can any one say that how to make B.dll is only used by A.dll and should be out of reach to my app.

Thank you
Sergey Alexandrovich Kryukov 15-Dec-13 3:25am    
Pretty interesting question, I up-voted it and answered.

1 solution

You can make B.DLL a private assembly to A.DLL. Please see:[^].

Before going this way, thoroughly consider all implications, pro and contra. It will be harder to support, especially if eventually you decide to use B.DLL resources elsewhere. One alternative would be joining A.DLL and B.DLL in one assembly, another one just leaving things as is and ignoring the problem.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900