在Visual Studio开发的项目中引用GAC中的dll

  1. Open the windows Run dialog (Windows Key + r)
  2. Type C:Windowsassemblygac_msil. This is some sort of weird hack that lets you browse your GAC. You can only get to it through the run dialog.
  3. Find your assembly and copy its path from the address bar.
  4. Open the Add Reference dialog in Visual Studio and choose the Browse tab.
  5. Paste in the path to your GAC assembly.

在Visual Studio中,选中项目,右键选择"Property Pages", 打开后,左边中选择"References", 点击"Add.." 输入上面3步中的路径,找到那个GAC中的dll,添加就可以

原文地址:https://www.cnblogs.com/wphl-27/p/7338611.html