How to extract dll from assembly folder and Install Uninstall DLL into Global Assembly Cache?

In this post, we will discuss how we can extra dll from GAC (Global Assembly Cache) or we can copy dlls from GAC. The dlls are presented inside GAC which is at c:\windows\assembly path. If you will go to this location, you will not be able to copy any dll from there. Microsoft does not provide an option to copy from there.

Also, you can read:
Generate URL using a Calculated column in SharePoint 2013 List

SharePoint deveopment training course

Delegate Controls in SharePoint 2013 using Visual Studio 2013

Create Visual WebPart using Visual Studio 2013 in SharePoint 2013

Follow below steps to copy a dll from GAC:
– Open Run prompt (Type Window +R). Then in the run prompt put “%windir%\assembly\GAC_MSIL” in it and hit enter key.

– There you will be able to see lots of folders each one with a name ~same as the dll name. Search for your dll name, click on the folder then inside there will be another sub folder, click on the sub-folder and there you will be able to see your dll.

– From here you will be able to copy the dll.

Install-Uninstall DLL into Global Assembly Cache:
We can install and uninstall assembly to GAC using Gacutil tool which will be presented on the below directory.

C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools

From the command prompt, you can go to the path or you can also see the path like below:

Open PowerShell management shell type Set-Alias.

Then for Name put “Gacutil” And for Value put “C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\gacutil.exe”

Then to Install a dll put the below command:
gacutil /i MyCustomDll.v.1.dll /f

And to uninstall dll from GAC put below command:
gacutil /u MyCustomDll.v.1.dll /f

Hope this will be helpful.

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)


About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site

View all posts by Bijay Kumar →