Geeks With Blogs
Bryan Corazza for ( ; ; ) { BizTalk, Workflow, and .NET }
First you open visual studio and goto Tools in the Menu bar and all the way towards the bottom of
the list you'll see External Tools (click on that).
 
Once that is open you will see a list of Menu Contents, to the right you will see an add and delete button.  Click on the Add button.  Once that is done you will see a [New Tool 1] entry into the bottom of the list.
 
  • Fill out the Title (to your liking) For this sample I used 'Install to GAC' and 'Remove from GAC'
  • For the Command Field, point to the gacutil.exe (by default in C:\Windows\Microsoft.NET\Framework\(latest version your compiling with)\gacutil.exe)
  • For VS 2005 by default gacutil.exe is “C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe“
  • Arguments -i$(TargetPath) - This is a Visual Studio built-in macro. 
    -u$(TargetName) obviously for the removal process.
  • Now I prefer clicking on Use Output window so I can see the results of the gacutil output.
 
Now once you have that setup you can just select the project (from your solution explorer) and goto Tools and run the 'Install to GAC' or 'Remove from GAC' without going to the DOS prompt.
 
      -B
Posted on Monday, May 16, 2005 9:42 PM General .NET | Back to top


Comments on this post: Adding External Tools in Visual Studio for Installing/Removing assemblies to/from the GAC

# re: Adding External Tools in Visual Studio for Installing/Removing assemblies to/from the GAC
Requesting Gravatar...
Should n't "(latest version your running)" be "(version for which you are compiling" ?
Left by Marco on Jun 19, 2006 7:12 AM

# re: Adding External Tools in Visual Studio for Installing/Removing assemblies to/from the GAC
Requesting Gravatar...
It could be, but since gacutil.exe hasn't changed from .NET 1.0 to 2.0 it really doesn't matter that much. Good point though.
Left by Bryan Corazza on Jun 19, 2006 7:22 AM

# re: Adding External Tools in Visual Studio for Installing/Removing assemblies to/from the GAC
Requesting Gravatar...
On my system (VS 2008) the path I needed was:

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\gacutil.exe

:)
Left by andrew myhre on Jun 03, 2009 2:05 AM

Your comment:
 (will show your gravatar)


Copyright © Bryan Corazza | Powered by: GeeksWithBlogs.net | Join free