【发布时间】:2010-08-03 06:12:16
【问题描述】:
为什么,当我跑步时:
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
【讨论】: