问题
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