加入收藏夹        

标准文件夹浏览方式查看GAC的程序集内容

     Have you ever wanted to or needed to view the actual contents of the GAC?  Not just what is in the GAC, but actually grab the assemblies that are there? 

I know I have.  You may be asking WHY did you want to grab an assembly that is in the GAC.  2 reasons:

  1. I wanted to move a copy of the assmebly from one box onto my dev box.
  2. I wanted to reflect the the assembly to see how it was build to learn something.

Well, fortunately there is a way to do this.  It is a pretty simple registry hack that works wonders.

Here is how:

  1. Open RegEdit
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion
  3. Right click in the viewer and add a new Binary Value
  4. Name your new Binary value DisableCacheViewer
  5. Double click your new entry and given it a value of 1 with Base Hexadecimal
  6. Click OK
  7. Navigate to C:\WINDOWS\assembly
  8. You should see the contents of the folder as sub folders, not the standard GAC Viewer

Hope this helps..... I would be sure to delete or rename this new value AFTER you are done playing around.

**** WARNING **** Any time you modify your registry, you do so at your OWN risk. 

posted @ 2008-09-05 13:47  Robert.H.fu  阅读(664)  评论(0编辑  收藏  举报