.net - *为什么* Visual Studio 不允许您在 GAC 中引用程序集?

标签 .net visual-studio visual-studio-2010 gac

有几个问题已经回答了如何,或者更准确地说如何解决此 Visual Studio 限制:

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

MSDN documentation虽然说:

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/

相关文章:

c# - 什么是托管代码和非托管代码?

为宏 __FUNCTION__ 和 __func__ 定义#define 的跨平台

c++ - 除以 0 是编译器错误或运行时错误

visual-studio-2010 - 在MFC对话框应用程序中绘制IplImage

c# - System.Diagnostics 调试类丢失?

.net - 我可以在桌面窗口上使用 DPWS 吗?

c# - 如何将数据库表列映射到 Dapper .Net 中的类属性

visual-studio - serviceHub.Host.CLR.x86 占用大量内存和 CPC

visual-studio-2010 - Windows 7 64位programfiles环境变量

c# - MSMQ 一个(队列)到多个(监听器)场景