听起来与this question有关,但是它们不是同一回事。这个问题没有程序集出现。除了我安装的特定设备外,我的所有东西都包含在内。

我希望有人对此有解决方案...我在做错什么吗?还是我在VS中发现了一些错误?

我正在Windows 7 Ultimate上使用Visual Studio 2010 Professional Beta 2。我刚刚下载了Rhino Mocks,并决定使用命令行实用程序GACUTIL将其安装到GAC中。然后,我重新启动。

在这里,您可以在我的GAC中看到装配体(单击放大):

visual-studio-2010 - 安装到GAC中的程序集未在Visual Studio中显示-LMLPHP

这是Visual Studio中可供我使用的程序集的列表:

visual-studio-2010 - 安装到GAC中的程序集未在Visual Studio中显示-LMLPHP

这是我安装并确认的命令提示符:

C:\Users\jason\Downloads>gacutil -i Rhino.Mocks.dll
Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.21006.1
Copyright (c) Microsoft Corporation.  All rights reserved.

Assembly successfully added to the cache

C:\Users\jason\Downloads>gacutil /l |grep -i rhino
Rhino.Mocks, Version=3.6.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL

最佳答案

Visual Studio从不列出GAC中的所有项目。它仅列出在特定注册表项中记录的项目。

请参阅此知识库文章以获取更多信息:How to display an assembly in the "Add Reference" dialog box

您始终可以通过在磁盘上浏览该程序集来引用该程序集。

09-03 21:36
查看更多