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

Posted 新西兰程序员

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Visual Studio开发的项目中引用GAC中的dll相关的知识,希望对你有一定的参考价值。

  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的主要内容,如果未能解决你的问题,请参考以下文章

在 Visual Studio 中添加对 C++ 项目的引用有啥后果?

在 Visual Studio 2013 中添加对您自己的 DLL 项目的依赖项/引用

为啥我们在 Visual Studio 2013 中引用 C++ 项目?

Visual Studio 2013 视图对对象有未解析的引用

尝试在 Visual Studio 2012 中添加对项目的引用,“未找到项目”

Visual Studio 怎样添加引用