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
2
votes
1 answer
check if assembly is present in GAC in batch file
How do we check if an assembly is present in GAC in a windows batch file?
I am trying:
C:\>gacutil /l ExistentAssembly
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights…

dushyantp
- 4,398
- 7
- 37
- 59
2
votes
1 answer
GACUtil vs. manually editing C:\Windows\assembly
We are using the GAC in our project, and while in development, we often have to unregister the previous versions of our DLLs before registering the fresh ones. While we can use GACutil.exe to do so, we can also drag & drop our DLLs to…

Jeff
- 522
- 7
- 26
1
vote
1 answer
Is it a problem to have 2 version of MySql.Data assemblies in GAC?
I have 2 versions MySql.Data assemblies in GAC
The Global Assembly Cache contains the following assemblies:
MySql.Data, Version=5.2.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d,
processorArchitecture=MSIL
MySql.Data, Version=6.4.3.0,…

dan_l
- 1,692
- 2
- 23
- 40
1
vote
1 answer
Using GACUTIL in Post-build event in Visual Studio on Windows 10
I have a Visual Studio 2012 project that creates an SSIS custom task. In the Post-build event, I have this:-
cd $(ProjectDir)
@SET TASKDIR="C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Tasks\"
@SET GACUTIL="C:\Program Files (x86)\Microsoft…

Kevin Balmforth
- 21
- 3
1
vote
1 answer
How to choose which gacutil.exe path to set in my environment variables?
I moved a project from .NET 3.5 to .NET 4.6.1. Now when I try to build (with the following as my post-build event command) I get the this error:
gacutil -if "$(TargetPath)"
The command "gacutil -if "[xyz.dll]"" exited with code 1
I referenced…

Bill Casey
- 111
- 1
- 6
1
vote
1 answer
My DLL in listed in GAC does not appear in VS when trying to reference it
Ive copied my DLL to the GAC and ive verified it is in the GAC by listing all assemblies with
gacutil -l
Still i cant reference to it in Visual Studio since it wont be listed. Is there some kind of refresh i need to do? Ive tried reinstalling and…

Daarwin
- 2,896
- 7
- 39
- 69
1
vote
1 answer
GAC appears to be broken on freshly installed Windows 10
After repeatedly getting 2147024891 errors while trying to install some 3rd party controls, investigation shows that it is unable to install some DLL's into the GAC. I tried to find out why, and here are a few other symptoms I ran into:
Browsing to…

Louis Somers
- 2,560
- 3
- 27
- 57
1
vote
3 answers
Pause the GACUTIL.exe listing
On my Windows System, I have over 3000 registered libraries in my GAC. When I use gacutil /l the list is too large to fit in my command output window. I need to be able to browse through to see if my library is in the list, is there a way to pause…

ldiablo
- 67
- 11
1
vote
1 answer
Trouble getting a .NET Publisher Policy Assembly to work
I created fresh projects for this as a proof of concept but I cannot get it to work.
I created a ClassLibrary1.dll with a simple method in it, at version 1.0.0.0.
I created a WindowsFormsApplication1 that calls that method, also at version…

Ramon M
- 31
- 2
1
vote
1 answer
gacutil is not a valid win32 application?
I registered Mono.WebServer.dll in the GAC with:
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe
Then I wanted to install an additional assembly in the GAC and I got:
gacutil is not a valid win32 application.
I used the same…

Stefan Steiger
- 78,642
- 66
- 377
- 442
1
vote
2 answers
GACed .net library project succesfully build only on second try
I'm trying to build a project library that needs to be in the GAC, so I added the following line as a post build event:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe" -if "$(TargetPath)"
For every even (second build, forth…

Eran Betzalel
- 4,105
- 3
- 38
- 66
1
vote
1 answer
Adding a .dll from GAC to SSIS script component doesn't work
I am trying to reference a custom class library (C#) in a script component of my SSIS package. The library has a strong name. I deployed the .dll to GAC via gacutil. I am administrator and I really tried everything else I could find on the www. If I…

チーズパン
- 2,752
- 8
- 42
- 63
1
vote
1 answer
Installing Windows SDK .net 4.5 in a Windows 2008 server
I was trying to install Windows SDK which supports .NET 4.5 in a Windows 2008 server. But I couldn't find any link for the same. All I could find was this:
Windows SDK for Windows Server 2008 and .NET Framework 3.5
Can't we install SDK which…

Ram V
- 724
- 1
- 8
- 18
1
vote
1 answer
C# assembly - get path where it was before being registered with gacutil
Is there any way to get the path of an assembly registered with gacutil /i myassembly.dll ?
I mean the path where the .dll file was at the moment it was registered with this command. All that I get right now is the path in the GAC

Marco A.
- 43,032
- 26
- 132
- 246
1
vote
1 answer
GAC Assembly redirection for several .dlls
I'm trying to redirect a specific .dll, let's call it MyAssembly.dll. This assembly has two versions:
MyAssembly.dll version 1.0.0.0
and
MyAssembly.dll version 1.1.0.0
I want these two assemblies to redirect to its third version: 1.2.0.0.
For…

Sonhja
- 8,230
- 20
- 73
- 131