开发者

Can An Assembly Be Installed In The GAC but not Show Up In Gacutil.exe?

I've got an application where some assemblies are copied to C:\Windows\assembly upon deployment under the assumption that this in开发者_运维问答stalls them in the GAC. The application seems to work but when I run gacutil.exe on the copied assemblies, it says the Global Assembly Cache contains 0 assemblies.

Should all assemblies in c:\Windows\assembly show up in gacutil? If not, why not? How can I verify that the assembly is in fact installed in the GAC?

I have always used gacutil.exe in the past to register assemblies so doing a file copy is new to me and I'm trying to understand the ramifications.


Surprisingly yes, but this would be an abuse of the internals of how the GAC works so don't do that.


Yes. The assembly can be registered in the system by adding respective REGISTRY KEYS.

Also at the same time, the assemblies need not be necessarily in the GAC folder. And gacutil reveals the assembly files placed in the GAC folder.

That is why it is recommended to deploy to GAC only if the assembly is registered in the system.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜