Global Assembly Cache Utility

I’ve recently gotten back into developing with Sharepoint 2003 and needed to install several assemblies into the GAC (Global Assembly Cache) on my Windows XP Pro machine. I realized it was a pain to open the Visual Studio.NET command prompt and then type the gacutil.exe on the command line. I figured there might be a quick utility to do this… After several minutes of “Googling” (usually my patience level), I found no such utility.

However, I did find a nice little workaround! The text below allows you to add a line to the Windows registry so you can right-click and add an assembly to the GAC easily.

The text for the key is below; simply copy/paste it into notepad and save it as a registry file (.reg). Then double click the file to add it to the registry.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dllfile\shell\gacutil\command]

@=”c:\\windows\\Microsoft.NET\\Framework\\v1.1.4322\\gacutil.exe /i \”%1\””

Advertisements

There are no comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: