Search code examples
.nettridiontridion-2011

Adding a dll file to GAC in SDL Tridion 2011 SP1


I have created a .dll project and I want to add it to Global Assembly Cache of Tridion server.

Consider I have the .dll at location "C:\Documents and Settings\myfunction.dll".

I have some questions.

  1. Do I need to download the gacutil.exe from server or gacutil.exe present in my local machine is enough?

  2. If gacutil.exe present in my local machine enough, do I need to change any configuration files?

  3. What set of commands do I need to use in gacutil.exe?

  4. Is there documentation available for it in SDL Tridion Live documentation?


Solution

  • This is not really a Tridion question, but more a .NET question.

    But you do need to run 'gacutil.exe' on the server where you want to install the dll. (In your case the Tridion Content Manager Server) Make sure that you use the right version of gacutil.exe. (32bits vs 64bits). Normally you don't have to change any config-files. But the config file for the gacutil.exe can be found in the same directory and is named 'gacutil.exe.config'

    To install an assembly in the GAC, you can use this command: gacutil.exe /i MyNiceApplication.dll