转载自:http://blog.csdn.net/akey307/archive/2009/12/01/4911541.aspx
1. 如何创建强名程序集
可以用VS来产生公钥密钥对文件, Project Properties à Signing
2. 如何查看public key token
可以用命令 sn –T [assembly]
3. 安装共享程序集
只有强名程序集才可以安装到Gac中。可以用命令
gacutil /i [assembly]
4. 卸载共享程序集
可以在C:\Windows\assembly目录下,找到要卸载的程序集,右键单击,然后选择Uninstall.
5. 如何对共享程序集在VS中添加引用
首先运行Start > Run > "C:\windows\assembly\gac_msil".
选择你要找的程序集的文件夹,然后进入该文件夹,再选择正确的版本的文件夹。
找到你要的程序集后,可先将其临时拷贝到一个位置,再把这个拷贝程序集添加到引用中,然后便可以删除这个临时程序集拷贝,因为VS会自动在GAC中搜索该程序集。