简体   繁体   English

为什么我无法访问 C:\WINDOWS\assembly\GAC 文件夹?

[英]Why I cannot access the C:\WINDOWS\assembly\GAC Folder?

I find the path of Microsoft.Office>interop.Excel under the Solution/References is我在 Solution/References 下找到 Microsoft.Office>interop.Excel 的路径是

C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Excel\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Excel.dll C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Excel\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Excel2485AF416223EZABECZ.Z0691416223EZABEC5

However, such a file doesn't exist on my C:\WINDOWS\assembly\GAC at all.但是,我的 C:\WINDOWS\assembly\GAC 上根本不存在这样的文件。 Further, there is not GAC folder under C:\WINDOWS\assembly.此外,C:\WINDOWS\assembly 下没有 GAC 文件夹。

Any idea?任何想法?

Use the command prompt to navigate there.使用命令提示符导航到那里。 Windows Explorer has an extension that runs for the assembly folder, hiding some of the details. Windows Explorer 有一个为程序集文件夹运行的扩展,隐藏了一些细节。

Here is a post on how to turn it off.这是关于如何关闭它的帖子。 http://geekswithblogs.net/pavelka/archive/2006/05/05/WindowsExplorerAndTheGlobalAssemblyCache.aspx or http://weblogs.asp.net/jkey/archive/2003/02/25/3006.aspx http://geekswithblogs.net/pavelka/archive/2006/05/05/WindowsExplorerAndTheGlobalAssemblyCache.aspxhttp://weblogs.asp.net/jkey/25/00/206030/

It is propably easiest to type to following in Start->Run: %windir%\assembly\gac在 Start->Run 中键入以下内容可能是最简单的:%windir%\assembly\gac

Some people use the subst command to map a drive letter to the GAC: SUBST [Drive letter]: “C:\Windows\assembly”有些人使用subst 命令将 map 一个驱动器号给 GAC: SUBST [Drive letter]: “C:\Windows\assembly”

Personally I would get a hold of the Office Primary Interop Assemblies (Here is the PIA for 2010) , they should contain the assembly you need就我个人而言,我会持有 Office Primary Interop Assemblies (这是 2010 年的 PIA) ,它们应该包含您需要的程序集

If you want to disable the GAC shell extension -如果要禁用 GAC shell 扩展 -

run regedit - navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion create DisableCacheViewer DWORD - set the value to 0x1 .运行 regedit - 导航到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion创建DisableCacheViewer DWORD - 将值设置为0x1

After this open the assembly folder and you should see the sub folders and navigate into them.在此之后打开程序集文件夹,您应该会看到子文件夹并导航到它们。

But if you want to copy the assemblies from them -I'm not sure why?但是,如果您想从中复制程序集-我不确定为什么? In you case you want Excel PIA's.在您的情况下,您需要 Excel PIA。 All the Office versions also provide PIAs所有 Office 版本还提供 PIA

Here are the PIA's for Office 2007. 是 Office 2007 的 PIA。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM