How to Install an Assembly in the GAC
This topic describes how to manually install either a BizTalk assembly or a non-BizTalk .NET assembly in the global assembly cache (GAC) by using the Gacutil tool included with Visual Studio.
Using Visual Studio, you can have BizTalk assemblies automatically installed in the GAC when they are deployed from Visual Studio by specifying this option in Deployment Properties for the BizTalk project, as described in How to Set Deployment Properties in Visual Studio. You cannot, however, use this method to install non-BizTalk .NET assemblies in the GAC; you must install them manually, as described in this topic.
|You can also specify deployment options for assemblies after they are deployed into a BizTalk application by using the BizTalk Server Administration console. For more information, see How to Modify the Deployment Options of a BizTalk Assembly. See also How to Modify the Deployment Options of a .NET Assembly, COM Component, File, or BAM Artifact.|
To perform this procedure, you must be logged on with an account that has Write permission on the GAC. The Administrators account on the local computer has this permission.
Copy the BizTalk assembly to your local computer into a folder.
Open the Visual Studio command prompt, as follows: Click Start, point to All Programs, point to Microsoft Visual Studio 2010, point to Visual Studio Tools, and then click Visual Studio Command Prompt (2010).
Type the following command:
gacutil.exe /if "< path to the assembly .dll file >"
This installs the assembly to the GAC, overwriting any existing assembly that has the same assembly name.
© 2010 Microsoft Corporation. All rights reserved.