Archive

Posts Tagged ‘windows tips’

Display and check GAC (Global Assembly Cache) – gacutil, explorer, cmdshell

I found this information useful to check install/uninstall procedure for Sharepoint Farm Solutions.

I wanted to check what happens under the hood, and also be sure my procedures did a clean job.
(Example: Install-SPSolution -Identity <mySolution>.wsp -GACDeployment)

Display GAC using Explorer: %windir%\assembly

Example: C:\windows\assembly



Display GAC using Command Shell

Example:

C:\Windows\assembly>dir /s |findstr <myAssemblyName>

With command shell you can retrieve more and best details (information includes structure and sub directories)

C:\Windows\assembly>dir
Directory of C:\Windows\assembly
28/07/2011 17:17 <DIR> GAC
06/04/2012 16:53 <DIR> GAC_32
12/07/2012 09:24 <DIR> GAC_64

14/08/2012 11:56 <DIR> GAC_MSIL

14/06/2012 13:19 <DIR> NativeImages_v2.0.50727_32

12/07/2012 09:27 <DIR> NativeImages_v2.0.50727_64

14/06/2012 13:31 <DIR> NativeImages_v4.0.30319_32

14/06/2012 10:57 <DIR> NativeImages_v4.0.30319_64

14/08/2012 15:15 <DIR> temp

14/08/2012 11:56 <DIR> tmp

0 File(s) 0 bytes

10 Dir(s) 4.207.726.592 bytes free


Global Assembly Cache Tool (Gacutil.exe)
(http://msdn.microsoft.com/en-us/library/ex0ss12c(v=vs.90).aspx)

Example:
Gacutil -l | findstr <myAssemblyName>

Where is gacutil.exe:

Directory of C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin
18/03/2010 20:51 103.248 gacutil.exe
31/08/2009 05:09 181 gacutil.exe.config
2 File(s) 103.429 bytes
0 Dir(s) 4.212.731.904 bytes free