什么是Gac以及我为什么使用它 [英] What Is Gac And Why I Use It

查看:117
本文介绍了什么是Gac以及我为什么使用它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昨天接受采访......面对一个新问题......什么是'GAC'?

所以任何人都可以用例子解释......然后我给他一个答案明星的良好排名。保持它

I face a interview yesterday....and facing a new question also.. "What is 'GAC' ?"
so Anybody can explain with example...then i give him a good ranking of Stars of answer.Keep it up

推荐答案

你需要的只是阅读一下。这个主题非常清楚地解释了。请参阅:

https://en.wikipedia.org/wiki/Global_Assembly_Cache [< a href =https://en.wikipedia.org/wiki/Global_Assembly_Cachetarget =_ blanktitle =New Window> ^ ],

https://msdn.microsoft.com/en-us/library/yf1d93sz.aspx [ ^ ]。



另请参阅此CodeProject文章:揭开.NET全局程序集缓存的神秘面纱 [ ^ ]。



如果仍然不清楚,请询问一些更具体的问题。



-SA
All you need is to read a bit. This topic is explained very clearly. Please see:
https://en.wikipedia.org/wiki/Global_Assembly_Cache[^],
https://msdn.microsoft.com/en-us/library/yf1d93sz.aspx[^].

See also this CodeProject article: Demystifying the .NET Global Assembly Cache[^].

If something is still unclear, please ask some more specific questions.

—SA


任何.Net Ass您开发的embly可以在许多不同的应用程序中共享。

这可以通过将其放在GAC中来实现。



如果你必须发布它的另一个版本,你可以在GAC中存储它们(有不同的版本)。

这个有助于摆脱dll维护dll问题的旧问题。
Any .Net Assembly that you develop can be shared across many different applications.
This can be achieved by placing it in the GAC.

If you have to release another version of it, you can store both of them (with different versions) in the GAC.
This helps in getting rid of an older problem with dlls where maintaining dlls was a problem.


这篇关于什么是Gac以及我为什么使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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