When do I need to exchange assemblies using the GAC?

Possible duplicate:
When do I need to deploy my assemblies in the GAC?

According to MSDN documentation:

You should share assemblies by installing them in the global assembly cache only when you need to. As a general guide, keep personal assembly dependencies and place assemblies in the application directory if assembly sharing is not required .

When is the “clearly required” assembly divided? If assembly sharing is required, you can physically distribute the same assembly in different places through XCOPY DEPLOYMENT à la Private Assemblies. I do not understand this general guide.

+4
source share
1 answer

As a rule, I adhere to the fact that if the assembly will be used by several applications on the same machine, it should go to the GAC, i.e. You have created your own useful code framework.

If you just have one application, it is usually best to use the bin folder.

Note that if you want to deploy to the GAC, you need to sign (with a strong key) and the version of your assemblies.

0
source

All Articles