I have two web services that are both contained underneath a common subdirectory
CompanyName\Service1
CompanyName\Service2
Each directory has a bin folder that contains its dlls. I've now come to a point where some of this code has been restructured and has quite a few common components and i'd like to be able to 'share' them. What would be the best way to go about this? Below is a list of solutions I have found (along with the negatives).
- AssemblyResolving - Security issues.
- codeBase element inside of web.config - Hardcoded paths to component locations.
- GAC - Currently non of our products use the GAC and I personally have very limited knowledge on using it. This one may just be a fear of the unknown.
- Place assemblies in both locations - Harder to update in place patches. Need to ensure files get replaced in all locations.
Am I missing anything else that could be helpful to me? Would anyone recommend using any of the options listed above?
Additionally, I cannot combine the two services into as they are currently used by third parties (they were build separately).