Thursday, January 10, 2008

Setting a reference to assembly in GAC

I wanted to set reference to an assembly and couldn't find a direct way to do it from Visual Studio.
So here's how i hacked into registry and was able to view the GAC as i view any file in windows explorer.

Here is how:
1) Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion in the RegEdit
2) Add a new Binary Value DisableCacheViewer and given it a value of 1
3) Navigate to C:\WINDOWS\assembly and you can see the contents of the folder as sub folders, not the standard GAC Viewer

Happy coding...


No comments: