Global Assembly Cache
Global Assembly Cache (англ. GAC — Глобальный Кэш Сборок) — в инфраструктуре .NET — подсистема, хранящая сборки CLI (CLI assembly) в централизованном репозитории. Система разработана для борьбы с проблемами разделяемых библиотек, например таких, как DLL hell.
К сборкам, расположенным в GAC, предъявляется несколько требований. В частности, они должны использовать strong name, соблюдать строгую схему указания версий и допускать исполнение нескольких версий кода в рамках единого приложения.
Два способа взаимодействия с GAC: утилита gacutil.exe и библиотека просмотра кеша: shfusion.dll.
Функции
Необходимо, чтобы несколько приложений, использующие одинаковые сборки, могли иметь к ним доступ.
Гарантирует их безопасность от удаления пользователем, так как каталог GAC находится внутри защищенной системной папки Windows.
GAC может хранить несколько разных версий сборок CLI, приложение при запуске запрашивает необходимую версию сборки.
Регистрация своей сборки
Запустить из командной строки gacutil.exe /i <ИмяСборки>
См. также
Ссылки
- .NET Framework Developer’s Guide
- Global Assembly Cache Tool (gacutil.exe)
- Demystifying the .NET Global Assembly Cache
- John, Mueller. Ten Managed Application Pitfalls that Kill Version Compatibility. devsource.com (11 февраля 2005). Дата обращения: 26 января 2008. Архивировано 21 января 2013 года.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.