为什么,当我跑:
gacutil –i myAssembly.dll
我得到:
Assembly successfully added to the cache
但是当我跑步时:
gacutil –l myAssembly.dll
我明白了
Number of items = 0
?
为什么,当我跑:
gacutil –i myAssembly.dll
我得到:
Assembly successfully added to the cache
但是当我跑步时:
gacutil –l myAssembly.dll
我明白了
Number of items = 0
?
试试吧
gacutil –l myAssembly
最后不要添加.dll。如果dll在GAC中注册,它将显示
Number of items = 1
http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx
愚蠢的理由,真的,但它花了我几个小时来修复,当你正在试图找出一个复杂的问题时,你不想要处理的事情。
要将程序集添加到GAC,您需要指定.dll扩展名,但在尝试查询或取消注册时,您必须 不 指定.dll扩展名。
运行
gacutil –l myAssembly
将返回
Number of items = 1