The Global Assembly Cache tool allows you to view and manipulate the contents of the global assembly cache and download cache.
Questions tagged [gacutil]
101 questions
11
votes
2 answers
GACUtil "Assembly successfully added to the cache" but "Number of items = 0"
Why, when I run:
gacutil –i myAssembly.dll
do I get:
Assembly successfully added to the cache
But then when I run:
gacutil –l myAssembly.dll
I get
Number of items = 0
?

Michael Rodrigues
- 5,057
- 3
- 25
- 51
10
votes
3 answers
Location of Gacutil with vs 2008
I want to run a post build script that installs the dll in the gac, but i have to use the full path to gacutil.exe, where can i find this? i have visual studio 2008

Shrage Smilowitz
- 24,494
- 2
- 28
- 32
8
votes
6 answers
gacutil postbuild event exists with code 1
I am trying to register and assembly in the GAC on a post-build event. Here's my post-build command
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\x64\gacutil.exe" /if "$(TargetPath)"
I am on x64/Windows 7/VS2010. I am…

JMorgan
- 805
- 4
- 11
- 24
7
votes
3 answers
NGen and Gacutil best practices
I've been working on a WinForms application which has about 5 referenced assemblies - written by us, and about 8 referenced assemblies by third parties (we wont be hoping to update them in the future unless something goes terribly wrong -…
Sophia Lawrence
6
votes
2 answers
Safe to install production assemblies with gacutil.exe?
MSDN states that gacutil.exe is not safe to use for production servers. Is there a legitimate reason for this or is Microsoft just practicing a little CYA? Is this warning safe to ignore? Or should I finally learn how to use Microsoft Windows…

Jeff
- 13,943
- 11
- 55
- 103
5
votes
2 answers
Viewer tool for Global Assembly Cache (Viewer)
To view a list of the assemblies in the global assembly cache, at the command prompt, type the following command: gacutil –l
In earlier versions of the .NET Framework, the Shfusion.dll Windows shell extension enabled you to view the global assembly…

Kiquenet
- 14,494
- 35
- 148
- 243
5
votes
6 answers
Register DLL in GAC without Assembly Manifest
I have a DLL I wish to register with my GAC. I enter the command:
gacutil /i c:\temp\msvcr100.dll
and I get the error:
Failure adding assembly to the cache: The module was expected to contain an as
sembly manifest.
All I have is the DLL. Is…

tsilb
- 7,977
- 13
- 71
- 98
5
votes
2 answers
GAC installation on every build - how to do it reliably
I would like to reliably auto-install my application assemblies in the GAC when I compile my application using Visual Studio. I've setup pre- and post-build events in my web application's build.
Pre build event:
"C:\Program Files (x86)\Microsoft…

Robert Koritnik
- 103,639
- 52
- 277
- 404
5
votes
2 answers
Two locations of gacutil.exe
I'm developing on Windows 2008 R2 Server, 64 bit.
I'm learning how to use gacutil.exe
I found two copies of this file:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\
I built a dll in VS2007,…

bmw0128
- 13,470
- 24
- 68
- 116
5
votes
3 answers
Using gacutil to install a .dll
I am trying to install a .dll refrence to use it in my code, but i am having issues using the gacutil. Would anyone be able to help me with the format of this?
I have tried using http://msdn.microsoft.com/en-us/library/ex0ss12c.aspx
But i must still…

scapegoat17
- 5,509
- 14
- 55
- 90
4
votes
1 answer
How to tell which application(s) have a given assembly registered in the GAC?
When trying to remove a given assembly (log4net.dll in this case, but it should apply to any similar case) using gacutil.exe, the action fails due to the assembly being required by an application. However, I can't figure out how to tell which…

James Manning
- 13,429
- 2
- 40
- 64
4
votes
2 answers
MSBuild community task GacUtil silently failing for me
I have an open source .NET project whose main artefact is a DLL that needs to be installed to the GAC for its primary use case. Therefore I want to install it during the AfterBuild task. I am using the GacUtil msbuild task from the MSBuild Community…

Justin Dearing
- 14,270
- 22
- 88
- 161
4
votes
1 answer
how can I manually install the Office 2007 PIAs on a computer with no Office installed?
I have seen a few other questions regarding the Office 2007 PIAs, in particular:
Can you install Office 2007 PIA's without office? (3)
Is Office 2007 PIA deployment possible without Office 2007?
This question is different.
In my experience,…

Cheeso
- 189,189
- 101
- 473
- 713
4
votes
1 answer
Assembly from GAC is not listed in Monodevelop's Edit References dialog
I am trying to port a small console application from Windows/.NET to Ubuntu/Mono. I have problems to add a reference to the mono version of NLog, which I added to the GAC.
Adding NLog.dll to the assembly was confirmed: Installed NLog.dll into the…

Peter P.
- 191
- 1
- 6
4
votes
1 answer
How can I add dll to the GAC?
running gacutil.exe /i ProjectX.Core.dll, I got the message: Assembly sucessfully added to te cache, but I can't see this assembly in the c:\windows\assembly folder.
What can be the problem?

stacker
- 14,641
- 17
- 46
- 74