I have two project in my visual studio solution project A and project B. Project A deploys its dll into the GAC. Project B references the dll of project A. Now I would like to know whether I should add the reference of project A from its' bin directory or from GAC, which one is the good practice.
Asked
Active
Viewed 1,053 times
0

nbi
- 1,276
- 4
- 16
- 26
-
Maybe this post will help you decide: http://stackoverflow.com/questions/23578/what-are-the-advantages-and-disadvantages-of-using-the-gac – Xcelled May 27 '14 at 04:02
-
@Xcelled194 - good find - I believe that question completely covers OPs concerns. – Alexei Levenkov May 27 '14 at 04:14
1 Answers
0
Can't speak for what is best practice, but if it is already deployed to GAC, then it would be the copy used preferentially by the machine, so I would reference that.

SeeMoreGain
- 1,263
- 16
- 36
-
although I would add that if you can avoid deploying project A to the GAC in the first place, do it. Often maintaining the GAC is more trouble than it is worth – SeeMoreGain May 27 '14 at 04:07