VS 2010 中有没有办法添加对仅在 GAC 中的程序集的引用?

发布于 2024-09-19 11:44:02 字数 108 浏览 2 评论 0原文

右键单击项目并单击“添加引用...”并没有提供执行此操作的方法。 .Net 选项卡不会在 GAC 中查找,如果您浏览到 C:\windows\Assembly,您会看到 GAC 的实际目录结构。 谢谢!

Right clicking on project and clicking "Add Reference..." does not provide a way to do this. The .Net tab doesn't look in the GAC and if you browse to C:\windows\assembly you are presented with the actual directory structure of the GAC.
Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一念一轮回 2024-09-26 11:44:02

不,没有办法通过使用资源管理器导航来做到这一点。我确实在这里感到沮丧,因为我遇到了同样的问题。我解决此问题的方法是执行以下操作:

  • 打开 CMD
  • 导航到 c:\windows\assembly 以查找有问题的程序集
  • 将路径复制到剪贴板
  • 打开“添加引用”对话框并粘贴到路径中

或者只是将 DLL 复制到临时目录中,并通过“添加引用”对话框导航到该目录。

No there is no way to do this by navigating with explorer. I do share the frustration here as I've run into the same problem. The way I work around this is to do the following

  • Open up CMD
  • Navigate through c:\windows\assembly to find the find the assembly in question
  • Copy the path to the clip board
  • Open up the Add Reference dialog and paste in the path

Or just copy the DLL into a temporary directory and navigate to that through the Add Reference dialog.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文