简体   繁体   中英

How to install dll into GAC.

I have to install the DLL to GAC. I have checked that same DLL is present there in the GAC related to my project. Is my steps correct?

1: Uninstall the previous DLL by clicking on File > Uninstall Assembly
2: Open Visual Studio command prompt
3: Type this C:\\Windows\\Microsoft.NET\\Framework\\v1.1.4322> gacutil.exe \\i C:\\xyz\\My project\\Projectxyz.dll

OR

Drag and drop the DLL from Bin to GAC ?

Is it mandatory to give the strong name to the assembly or can I avoid it? What is the side effect if I don't give the strong name?

To answer your last question, yes , you must strong-name your assembly in order to install it into the GAC.

Something tells me that you don't really need to add your assembly to the GAC. Only in very few cases is there a benefit to doing this. Unless you know what these cases are, and know they apply to you, I'd suggest you forget about it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM