0

这可能不是建设性的,我只是出于好奇而问这个......

作为问题:我在两个目录(c:\windows\assembly\GAC_MSIL* * * 和 c:\windows\microsoft.net\framework\v2.0.50727)中都找到了相同程序集(System.dll)的两个副本

它们都是相同的版本(我什至将它们与 FC.exe 进行了比较,它们是相同的)。

为什么不能使用 \microsoft.net\framework\2.0.50727 中的“任何程序集”只使用 GAC 中的那个?

4

1 回答 1

3

Files are copied to the GAC, not the other way around. The files are installed to the .net folder, and that's their official location. The GAC is more like a "cache" of commonly used files, and not it's official location. In fact, that's it's name. Global Assembly Cache.

A Cache, by definition, is a copy of something. It can't be the source of it.

于 2012-10-04T16:44:33.030 回答