问题描述
我安装了 VS2010 和 .NET 4.0,然后我编译了一个程序集并使用
I installed the VS2010 and .NET 4.0, then I compiled an assembly and ran the gacutil using the exe available on
%ProgramFiles%Microsoft SDKsWindowsv7.0ABinNETFX 4.0 Tools
可执行文件的输出表明程序集已成功安装在全局程序集缓存上.但是,当我转到 %WINDIR%assembly
文件夹时,我找不到使用 .NET Framework 4.0 gacutil
安装的程序集.
The output of the executable said the assembly was sucessfully installed on Global Assembly Cache. However, when I go to %WINDIR%assembly
folder I cannot find the assembly I installed using the .NET Framework 4.0 gacutil
.
我看到一些帖子说 .NET Framework 4.0 有一个单独的 GAC,但我没有找到它所在的位置.
I've seen some posts saying the .NET Framework 4.0 has a separated GAC, but what I haven't found was where it is located.
有人可以帮我检查哪里可以看到 .NET Framework 的全局程序集缓存,因为它曾经在以前的版本 (%WINDIR%assembly
) 上工作?
May someone to help me to check where can I see the Global Assembly Cache of .NET Framework, as it used to work on previous version (%WINDIR%assembly
)?
推荐答案
是的,从 .NET 4.0 开始有两个不同的 GAC
Yes, there are two distinct GACs as from .NET 4.0
如下所述,新的物理位置是 %windir%Microsoft.NETassembly(如果您感兴趣,可以在命令提示符下使用 dir 命令对其进行交互).
As stated below, the new physical location is %windir%Microsoft.NETassembly (you can interogate it using the dir command at a command prompt if you're interested).
值得注意的是,运行至 2.0 CLR 的应用程序甚至无法在新的 GAC 中看到程序集.
It's worth noting that applications running up to the 2.0 CLR will not even be able to see assemblies in the new GAC.
这篇关于.NET Framework 全局程序集缓存在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!