有几个问题已经回答了如何,或者更准确地说如何解决此 Visual Studio 限制:
GAC Assembly Missing in Add Reference dialog How can I reference a dll in the GAC from Visual Studio?
You cannot add references from the Global Assembly Cache (GAC), as it is strictly part of the run-time environment.
看来 Visual Studio 团队是故意这样做的。也许他们这样做是为了让你不伤害自己?我使用 VS extension 引用 GAC 中的程序集违反了哪些最佳实践像这样?我错过了什么吗?
只需与社区核实一下,欣赏您的想法。
最佳答案
使用 Sharp Develop(.NET 的开源 IDE),您可以添加 GAC 引用,使用 .NET 4,您可以添加 GAC 引用。添加 GAC 引用绝对不会伤害自己。我没有收到使用它的开发人员的任何负面反馈。
很快 this extension将会有更多性感的特征。
关于.net - *为什么* Visual Studio 不允许您在 GAC 中引用程序集?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4269538/