这是 GAC 的所在地吗?
这是 GAC 的所在地吗?
C:\Windows\Microsoft.NET\assembly\GAC_MSIL
如果是这样,那么C:\Windows\assemble
是什么?
Is this the location of the GAC?
C:\Windows\Microsoft.NET\assembly\GAC_MSIL
If so, then what is C:\Windows\assembly
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案取决于所使用的 .NET Framework 的版本。多个版本可以并排安装(这可能适合您),并且为旧版本编写的程序将使用该版本(如果已安装)。
4.0之前
4.0 之前的所有版本都使用
%WINDIR%\ assembly
(在您的情况下,C:\Windows\ assembly
)作为 GAC。该目录使用特殊的资源管理器视图(程序集缓存查看器)来查看和管理 GAC。自 4.0
自 4.0 起的版本使用
%WINDIR%\Microsoft.NET\ assembly
(在您的情况下,C:\Windows\Microsoft.NET\ assembly
)作为 GAC。从 4.0 开始,程序集缓存查看器已过时。资源管理器像常规目录一样显示 GAC 目录。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.