的Gacutil.exe成功地增加了组装,但装配在资源管理器无法查看。为什么? [英] Gacutil.exe successfully adds assembly, but assembly not viewable in explorer. Why?

查看:557
本文介绍了的Gacutil.exe成功地增加了组装,但装配在资源管理器无法查看。为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑的Gacutil.exe从Visual Studio命令提示符2010年注册DLL(CatalogPromotion.dll)到GAC。运行程序后,它说大会成功添加到缓存,运行 GACUTIL / L CatalogPromotionDll 显示,GAC包含程序集,但我看不到的组件,当我浏览到C:\ WINDOWS \组件从Windows资源管理器。 为什么我不能看到WINDOWS \总成装配从Windows资源管理器,但我可以用的Gacutil.exe看吗?

I'm running GacUtil.exe from within Visual Studio Command Prompt 2010 to register a dll (CatalogPromotion.dll) to the GAC. After running the utility, it says Assembly Successfully added to the cache, and running gacutil /l CatalogPromotionDll shows that the GAC contains the assembly, but I can't see the assembly when I navigate to C:\WINDOWS\assembly from Windows Explorer. Why can't I see the assembly in WINDOWS\assembly from Windows Explorer but I can see it using gacutil.exe?

背景:这就是我键入到命令提示符VS工具:

Background: Here's what I typed into the command prompt for VS Tools:



    C:\_Dev Projects\VS Projects\bmccormack\CatalogPromotion\CatalogPromotionDll\bin
    \Debug>gacutil /i CatalogPromotionDll.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:\_Dev Projects\VS Projects\bmccormack\CatalogPromotion\CatalogPromotionDll\bin
    \Debug>gacutil /l CatalogPromotionDll
    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:
      CatalogPromotionDll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9188a175
    f199de4a, processorArchitecture=MSIL

    Number of items = 1

但是,大会并没有在C中显示:\ WINDOWS \组装

However, the assembly doesn't show up in C:\WINDOWS\assembly.

推荐答案

那是因为你使用.NET 4.0版本的Gacutil.exe的。它存储在不同的的GAC,在c大会:\ WINDOWS \ microsoft.net \组装。当所有的.NET 4.0程序集存储。有那一个没有外壳扩展处理程序,该文件夹是可见原样。您可以使用Windows资源管理器一看,看,.you'll看到GAC文件夹的内部结构。你不应该有任何麻烦找你组装回来,GAC并不特别复杂。

That's because you use the .NET 4.0 version of gacutil.exe. It stores the assembly in a different GAC, the one in c:\windows\microsoft.net\assembly. Where all .NET 4.0 assemblies are stored. There is no shell extension handler for that one, the folders are visible as-is. You can have a look-see with Windows Explorer, .you'll see the internal structure of the GAC folders. You shouldn't have any trouble finding your assembly back, the GAC isn't particularly complicated.

如果大会的目的是要使用一个应用程序,面向.NET的早期版本,那么你应该使用.NET 2.0版本的Gacutil.exe的,保存在C:\ Program Files文件\微软的SDK \的Windows \ V6 .0A \ BIN

If the assembly is intended to be used by an app that targets an earlier version of .NET then you should use the .NET 2.0 version of gacutil.exe, stored in C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin

这篇关于的Gacutil.exe成功地增加了组装,但装配在资源管理器无法查看。为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆