My company has a facility that hits the house of gigabytes. We have a set of applications in our installation that share the same libraries.
By default, when .NET runs an application, it looks for the assemblies in the same directory where the executable is. In addition, it also takes into account the assemblies found in GAC %windir%\assembly
or %windir%\Microsoft.NET\assembly
.
To reduce the size of my installation I had thought about putting the common assemblies in a shared directory. Is there a way to do this?
Example (structure of a conventional installation):
Aplicacao1
Assembly1
Assembly2
Aplicacao2
Assembly1
Assembly3
Example (structure of an installation with assemblies in a shared directory, this was the one I wanted to use):
Aplicacao1
Assembly2
Applicacao2
Assembly3
lib
Assembly1