Is this the location of the GAC?

别说谁变了你拦得住时间么 提交于 2021-02-16 15:09:37

问题


Is this the location of the GAC?

C:\Windows\Microsoft.NET\assembly\GAC_MSIL

If so, then what is C:\Windows\assembly?


回答1:


The answer depends on the version of the .NET Framework being used. Multiple versions can be installed side by side (which is probably the case for you), and programs written for an older version use that version if it's installed.

Before 4.0
All versions before 4.0 use %WINDIR%\assembly (in your case, C:\Windows\assembly) for the GAC. This directory uses a special Explorer view (the Assembly Cache Viewer) to view and manage the GAC.

Since 4.0
Versions since 4.0 use %WINDIR%\Microsoft.NET\assembly (in your case, C:\Windows\Microsoft.NET\assembly) for the GAC. Since 4.0, the Assembly Cache Viewer is obsolete. Explorer displays the GAC directory just like a regular directory.



来源:https://stackoverflow.com/questions/5573567/is-this-the-location-of-the-gac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!