Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check GAC assembly details on Windows Server 2012?

Tags:

How can you check GAC assembly details Windows Server 2012? I managed to register a DLL via Powershell, now I need to verify that it is really done.

like image 840
Binu Bhasuran Avatar asked Sep 06 '13 07:09

Binu Bhasuran


People also ask

Which command is used or view contents of GAC?

Use the global assembly cache tool (gacutil.exe) to view the contents of the global assembly cache (GAC).

How can I tell if a dll is in the GAC?

Use the debugger. You see the paths where the DLLs were found both in the Output window and in the Debug > Windows > Module window.

Where is GAC on Windows?

Where is GAC (Global Assembly Cache) located? GAC is located in %windir%\assembly (for example, C:\WINDOWS\assembly) and it is a shared repository of libraries.


2 Answers

You are probably looking for the custom look of the GAC directory that you were familiar with in .NET versions prior to 4.0. Which stored the GAC in the c:\windows\assembly window and used a custom shell extension to flatten the directory structure into a list of assemblies.

The shell extension is no longer used for .NET versions 4.0 and up. You have .NET 4.5 on that machine, its GAC is stored in c:\windows\microsoft.net\assembly. You just get to see the actual directory structure. Locating the assembly isn't that difficult, start in the GAC_MSIL directory and you should have no trouble locating your assembly there by its name. Locate the folder with the same display name as your assembly. It will have a subdirectory that has an unspeakable name that's based on the version and public key token, that subdirectory contains the DLL.

If your assembly is a mixed-mode assembly created with C++/CLI then you'd start from either the GAC_32 or GAC_64 directory.

like image 65
Hans Passant Avatar answered Oct 04 '22 20:10

Hans Passant


just try with this path

C:\Windows\Microsoft.NET\assembly

like image 23
Thilina H Avatar answered Oct 04 '22 22:10

Thilina H