1. 程式人生 > >在Visual Studio開發的項目中引用GAC中的dll

在Visual Studio開發的項目中引用GAC中的dll

gac 9.png oos sort ast can ren property win

  1. Open the windows Run dialog (Windows Key + r)
  2. 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.
  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,添加就可以

技術分享

技術分享

在Visual Studio開發的項目中引用GAC中的dll