.net - Gacutil.exe successfully adds assembly, but assembly not viewable in explorer. Why? -


I have GACUtil.exe to register a DLL (CatalogPromotion.dll) in GL from Visual Studio Command Prompt 2010 I'm playing. After running the utility, it says that the assembly has been successfully added to the cache , and running gacutil / l catalogspromotion dell shows that GAC is in the assembly, but I can not see the assembly when I navigate from the C: \ WINDOWS \ assembly in Windows Explorer Why can not I see in Windows assembly from windows explorer but i can see it using gatil.xe ?


Background: Command Prompt for VS Tool I wrote here:

 C: \ _ Dev Project \ 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.  The assembly was successfully added to the cache  C: \ _ Dev Projects \ VS Projects \ bmccormack \ CatalogPromotion \ CatalogPromotionDll \ bin \ Debug>  gacutil / l Catalogs Promotions Del  Microsoft (R) .NET Global Assembly Cache Utility Version 4.0.30319.1 Copyright (c) Microsoft Corporation All Rights Reserved. The following assemblies in the Global Assembly cache are: Catalog Promotions Dell, Version = 1.0.0.0, Culture = Neutral, PublicKey Tokens = 9188A 175F-194D4A, Processor ArctarTech = MSIL  Number of Items = 1  

However, C: \ WINDOWS \ Assembly does not appear in the assembly.

That's because you use it. Net 4.0 version of Gacutil.exe. It stores the assembly in different GAC, C: one of the: \ windows \ microsoft.net \ assembly where all .NET 4.0 conventions are stored. There is no shell extension handler for that one, folders are visible - you can see a look with Windows Explorer, you will see the internal structure of GAC folders. You should not have any problem in getting your assembly back, GAC is not particularly complicated.

If the assembly is used by an app that targets earlier versions then you should use the net. .NET 2.0 version of gacutil.exe stored in C: \ Program Files \ Microsoft SDK \ Windows \ V 6.0A \ bin

.

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -