Pages

Tuesday, July 13, 2010

.NET Deploy Multiple Assemblies (DLL) to the GAC

If you have too many assemblies you need to deploy to the GAC, and you can't drag and drop due to administrative rights, you can go through the Visual Studio Command Prompt.

Run Visual Studio Command Prompt in Administrator mode.

Change directory to the folder containing all the assemblies - its easy to just copy all the DLLs you need into some new folder and point it there.

Run the following:

FOR %1 IN (*) DO Gacutil /i %1