adding DLLs to the GAC (Global Assembly Cache)
In fact, the. NET comes with a tool that can register DLLs in the GAC, Gacutil.exe. Start Menu-microsoft Visual studio-visual Studio tools-visual Studio 2008 Command Prompt, enter Gacutil.exe carriage return in the console to see some parameters.
Generally to install the DLL into the GAC, select the-i parameter, followed by the full path of the DLL file.
For example:
Gacutil.exe-i E:\ODP.NET\bin\2.x\Oracle.DataAccess.dll
In this case, the DLL is registered to the GAC, there is a bad thing is that the path can not be changed, a better alternative is to copy the DLL directly to the C:\WINDOWS\assembly directory, and then to register.
If you want to know some information about a DLL that is registered to the GAC, such as version, Culture, PublicKeyToken, etc., you can also use gacutil.exe-l to view it. Some of the other uses look at the diagram above to find out.
Copy the DLL from the GAC (Global Assembly Cache)
When we are developing, we sometimes need to copy the DLL libraries inside the GAC, and at this time, we can't drag them out. Originally, to copy the GAC inside the DLL, it needs to be done under the command line, with the command line DLL copied over, it is important to see the command lines sometimes.
Here, for example, copy the Microsoft.Office.SecureStoreService.dll file.
CD c:\Windows\assembly\GAC_MSIL\Microsoft.Office.SecureStoreService\14.0.0.0__71e9bce111e9429c
copy *. * C \
Start, run and enter the DOS interface, enter the following command, carriage return, in the C drive will find a number of a Microsoft.Office.SecureStoreService.dll file
NET in DLLs, GAC