Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I manually copy assemblies into the GAC?

I'm using Windows 7 Ultimate, trying to manually copy a file into the GAC. I tried using Windows Explorer but it promptly tells me "Access is denied". I tried using the command line with elevated permissions and it says the file was copied but I can't find the assembly anywhere.

I'm updating a third party spreadsheet component (GemBox) and the update process involves manually dropping the new version of the assembly into the GAC of the dev machine. Any suggestions?

like image 753
DenaliHardtail Avatar asked Dec 06 '09 21:12

DenaliHardtail


People also ask

How do I add and remove assembly from GAC?

There are two ways to remove an assembly from the global assembly cache (GAC): By using the Global Assembly Cache tool (Gacutil.exe). You can use this option to uninstall assemblies that you've placed in the GAC during development and testing. By using Windows Installer.

Which assemblies can be stored in GAC?

The Global Assembly Cache (GAC) is a central repository for storing shared assemblies. The GAC allows multiple versions of the same assembly to be installed concurrently and also prevents different assembly vendors from overwriting each other's assemblies.


2 Answers

You could try installing it using gacutil:

gacutil -I yourassembly.dll
like image 64
jvilalta Avatar answered Sep 21 '22 20:09

jvilalta


You can find gacutil in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64

like image 25
Felienne Hermans Avatar answered Sep 22 '22 20:09

Felienne Hermans