Where is the .NET Framework Global Assembly Cache?

久未见 提交于 2019-12-17 09:10:12

问题


I installed the VS2010 and .NET 4.0, then I compiled an assembly and ran the gacutil using the exe available on

%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools

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.

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.

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)?


回答1:


Yes, there are two distinct GACs as from .NET 4.0

See here: .NET 4.0 has a new GAC, why?

As stated below, the new physical location is %windir%\Microsoft.NET\assembly\ (you can interogate it using the dir command at a command prompt if you're interested).

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.




回答2:


Try:

%windir%\Microsoft.NET\assembly\ 


来源:https://stackoverflow.com/questions/2823068/where-is-the-net-framework-global-assembly-cache

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