在Visual Studio开发的项目中引用GAC中的dll
- Open the windows Run dialog (Windows Key + r)
- Type C:\Windows\assembly\gac_msil. This is some sort of weird hack that lets you browse your GAC. You can only get to it through the run dialog.
- Find your assembly and copy its path from the address bar.
- Open the Add Reference dialog in Visual Studio and choose the Browse tab.
- Paste in the path to your GAC assembly.
在Visual Studio中,选中项目,右键选择"Property Pages", 打开后,左边中选择"References", 点击"Add.." 输入上面3步中的路径,找到那个GAC中的dll,添加就可以