代码之家  ›  专栏  ›  技术社区  ›  LeWoody

*为什么*Visual Studio不允许您引用GAC中的程序集?

  •  4
  • LeWoody  · 技术社区  · 14 年前

    有几个问题已经回答了 同质光波导 或者更准确地说,如何绕过这种Visual Studio限制:

    GAC Assembly Missing in Add Reference dialog How can I reference a dll in the GAC from Visual Studio?

    这个 MSDN documentation 虽然说:

    不能从添加引用 全局程序集缓存(GAC) 因为它是 严格属于运行时间的一部分 环境。

    因此,看起来Visual Studio团队是故意这样做的。也许他们这么做是为了不伤害你自己?使用vs引用GAC中的程序集违反了什么最佳实践 extension 这样地?我错过什么了吗?

    只需与社区再次确认,感谢您的想法。

    3 回复  |  直到 11 年前
        1
  •  3
  •   Drew Gaynor    11 年前
        2
  •  3
  •   Hans Passant    14 年前

        3
  •  1
  •   Ian Ringrose    14 年前