为什么我的装配在“ Add Reference>中不可见达网络”的安装到GAC时?
关于GAC,请快速提问
我创建了一个程序集Awesome.DLL。如果它已签名,则安装到GAC中:
C:MyAppsAwesomeAwesomeAwesomebinRelease>sn -k Awesome.snk
Microsoft (R) .NET Framework Strong Name Utility Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Key pair written to Awesome.snk
C:MyAppsAwesomeAwesomeAwesomebinRelease>gacutil /i Awesome.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
C:MyAppsAwesomeAwesomeAwesomebinRelease>gacutil /l Awesome.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
The Global Assembly Cache contains the following assemblies:
Number of items = 0
我的问题:
在C:WindowsAssembly
或任何子文件夹中找不到Awesome.DLL。它被发现,虽然在C:WINDOWSMicrosoft.NETassemblyGAC_MSIL
我想因为这个,我无法从Add Reference> .Net看到Awesome.DLL。
为什么不安装到C:WindowsAssembly
?我怎么能指向那个位置呢?
没有找到相关结果
已邀请:
3 个回复
浆错
而不是
,因为它是.Net 4.0程序集,.Net framework 4.0版在该位置有一个新的单独GAC。位于
的GAC仅包含.Net 2.0 - 3.5程序集。 (参见.NET 4.0有一个新的GAC,为什么?)。 在Visual Studios“Add Reference - > .Net”中找到的程序集列表。对话框不仅仅是在GAC中找到的程序集列表(请注意,该列表中的大多数条目也未在GAC中找到)。 有关如何将程序集添加到此列表的信息,请参阅以下文章(特别是“在”添加引用“对话框中显示程序集”部分): 如何:在Visual Studio中添加或删除引用 请注意,对于不同版本的Visual Studio,用于此目的的注册表项是不同的。
抚驰
锯康