【问题标题】:GACUtil "Assembly successfully added to the cache" but "Number of items = 0"GACUtil“程序集成功添加到缓存”但“项目数= 0”
【发布时间】:2010-08-03 06:12:16
【问题描述】:

为什么,当我跑步时:

gacutil –i  myAssembly.dll

我得到:

Assembly successfully added to the cache

但是当我运行时:

gacutil –l  myAssembly.dll

我明白了

Number of items = 0

?

【问题讨论】:

    标签: gac gacutil


    【解决方案1】:

    试试

    gacutil –l  myAssembly
    

    最后不要添加.dll。所以如果dll在GAC中注册它会显示

    Number of items = 1
    

    http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx

    【讨论】:

      【解决方案2】:

      确实是愚蠢的理由,但我感觉它花了好几个小时才解决,而且当你试图找出一个复杂的问题时,这并不是你真正想要处理的事情。

      要将程序集添加到 GAC,您需要指定 .dll 扩展名,但在尝试查询或取消注册时,您必须指定 .dll 扩展名。

      跑步

      gacutil –l  myAssembly
      

      会回来

      Number of items = 1
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-06-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-06-15
        • 1970-01-01
        • 1970-01-01
        • 2016-05-04
        相关资源
        最近更新 更多