GAC your assemblies with one click!!

Posted at: 12/19/2006 at 8:04 PM by saravana

 

We BizTalk developers often get frustrated with this assembly GACking stuff. Here is a cool registry setting which will make our life little bit easier.

Copy and paste the code into a notepad file and save it with extension .reg. Double click on the file and its all done.

-------------------------------------------------------

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dllfile\shell\GAC-It\command]
@="c:\\windows\\Microsoft.NET\\Framework\\v1.1.4322\\gacutil.exe /i \"%1\""

-------------------------------------------------------

Then open explorer and navigate to your dll, right click on it, for your surprise you'll see a shortcut called GAC-It as shown below. You can put whatever name you want as highlighted in RED in the above script.

Found it from here

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: |  Categories: .NET
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(3) | Comments RSS

Comments

Wednesday, February 14, 2007 8:01 AM
Richard
Nice little trick! However when registering dll:s developed in .NET 2.0 one has to change the script to point to the new gacutil.exe. That would change the script to something like this:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dllfile\shell\GAC-It\command]
@="C:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\Bin\\gacutil.exe /i \"%1\""
Wednesday, February 14, 2007 9:55 PM
Saravana Kumar
Hi Richard, thanks for pointing this out, hope people looking at this blog will read the comments as well.
Friday, May 30, 2008 2:59 PM
Steven
Steven
Interestingly enough I just found this registry edit, and I looked and I only have the 1.1 of the gacutil even though I have 1.0, 1.1, 2.0, and 3.0 frameworks installed.

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading