Introduction
This tip provides a simple explanation of how to install a DLL into the Global Assembly Cache (GAC).
- The Global Assembly Cache provides a solution to the problem of duplicated DLLs.
- The GAC is a machine-wide repository for shared assemblies.
- Once an assembly is added to the GAC, it is available to all applications that wish to use it.
To use DLL Assembly in Biztalk Orchestration, you need the following:
- Add DLL To Gac
- Any Assembly added to Gac must have a strong name
- Strong-naming an assembly creates a unique identity for the assembly.
- This can prevent assembly conflicts.
Getting Started
A. Assembly Strong Name
- Open Visual Studio, create C# Class Library
- Add any code you need
- Go to project Properties

- Open Signing Tab, check sign the assembly, choose strong name key.

- Create a new strong name: you can protect with password and signature algorithm.

B. Assembly Add To Gac
- From project properties: go to Build Events Tab, Click Edit Post build.

- Write Command line using GAC Tool that adds assembly to Gac.

- The last step is to build the DLL, show in output window, how DLL is successfully added to GAC.

Other Approach: Using CMD "Command Prompt"
- Run command prompt as administrator.
- Write the same CMD command before, but redirect to DLL folder.
- It will register assembly to Gac.