GACUTIL – Visual Studio 2008

Often it’s useful to have assembly files added to the Global Assembly Cache using a command-line (DOS-style) batch program – eg. install.bat

For Visual Studio 2005, this file (GACUTIL.EXE) is located here…>

C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\

So, for Visual Studio 2008, I had assumed it would be in the same location – or even in the new v3.5 folder…>

C:\Program Files\Microsoft Visual Studio 9.0\SDK\v3.5\Bin\

BUT – it’s not in either of those locations, and (after some hunting and Google’ing – and not sure why), but I found it here…>

C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin

NB.  This is for a Windows Server 2008 implementation – a quick check onto a Windows Vista (x64) machine verifies has the same file location.

So – there ya go – if you’re wondering “where is gacutil ?” – you know where to look !

Advertisements

13 thoughts on “GACUTIL – Visual Studio 2008

  1. But what if Visual Studio is not installed on the server – like a real world situation where the server has NOT got Visual Studio on it, but your local developement PC does?

  2. For those who still have Conrad’s question, open a command window:

    cd “\Program Files”
    dir /s gacutil.exe

    If not found and running 64-bit, then

    cd “\Program Files (x86)”
    dir /s gacutil.exe

    If all else fails and you’ve got some time

    cd \
    dir /s gacutil.exe

    So why not search from within Windows Explorer? I have often found it unable to find files on my machine that I KNOW exist. The command line method always finds them for me. Notepad++ is also good alternative.

  3. I have a production Windows 2008 server (No Visual Studio) and I have searched the entire C drive and I cannot find gacutil.exe. And i need gacutil.exe for .NET 4.0

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 )

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s