NET in DLLs, GAC

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.