海关总署32位与64位 [英] GAC 32bit vs. 64bit

查看:253
本文介绍了海关总署32位与64位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找了一段时间试图了解这更好,但我没有找到任何直接的答案在这。

I've been searching for a while trying to understand this better, but am not finding any straight-forward answers on this.

我有我需要添加到GAC中的一个组件。我运行Windows 7 64位,并在努力解决的问题(2005 SSIS是不承认的DLL),我想确保我的DLL(.NET 4.0)在适当的GAC注册。

I have a component that I need to add to the GAC. I'm running Windows 7 64-bit, and in an effort to troubleshoot an issue (SSIS 2005 isn't recognizing the DLL), I'm trying to make sure I have the DLL (.NET 4.0) registered in the proper GAC.

因此​​,这里是我的问题:

So here are my questions:

  1. 如果是Windows 7为64位和32位GACS的物理位置?我所知道的C:\ WINDOWS \组件,但不知道哪一个是这样的,并在另外一个是

  1. Where are the physical locations in Windows 7 for both 64bit and 32bit GACs? I know of C:\Windows\assembly, but not sure which one this is, and where the other one is.

哪个版本GACUTIL做我用它来添加组件,64位GAC? 32bit的GAC?我知道C:\ Program Files文件(x86)的\微软的Visual Studio 10.0 \ VC和我假设这是32位的,但不知道在哪里64位GACUTIL是

Which version of gacutil do I use to add an assembly to 64bit GAC? 32bit GAC? I know of C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC, and I'm assuming this is for 32bit, but not sure where 64bit gacutil is.

什么决定了GAC的应用程序将在该大会?我假设这是由应用程序是否是64位还是32位的确定,但我想知道是否有更给它比。

What determines which GAC an application looks in for the assembly? I'm assuming this is determined by whether the app is 64bit or 32bit, but am wondering if there is more to it than that.

在此先感谢。

更新:

挖掘到这下面ShaneBlake的回答后,我想起了.NET 2.0和.NET 4.0 GACS是在不同的位置。所以:

After digging into this following ShaneBlake's answer, I remembered that .NET 2.0 and .NET 4.0 GACs are in different locations. So:

.NET 2.0 GAC:
C:\ WINDOWS \组装(?32位和64位)

.NET 2.0 GAC:
c:\windows\assembly (32bit and 64bit?)

.NET 4.0 GAC
C:\ WINDOWS \ Microsoft.NET \组装\ GAC_32 (32位只)
C:\ WINDOWS \ Microsoft.NET \组装\ GAC_64 (64只)
C:\ WINDOWS \ Microsoft.NET \组装\ GAC_MSIL (?32位和放大器; 64位)

.NET 4.0 GAC
c:\windows\Microsoft.NET\assembly\GAC_32 (32bit only)
c:\windows\Microsoft.NET\assembly\GAC_64 (64bit only)
c:\windows\Microsoft.NET\assembly\GAC_MSIL (32bit & 64bit?)

推荐答案

提供的Gacutil.exe应该安装.dll文件到正确的位置,这取决于它是如何编制。你应该能够在这里找到该文件:的%ProgramFiles%\微软的SDK \的Windows \ v7.0A \ BIN \ NETFX 4.0工具\

The gacutil.exe should install the .dll to the right location depending on how it was compiled. You should be able to find the file here : %ProgramFiles%\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\

.NET 4都有它自己的大会文件夹( C:\ WINDOWS \ Microsoft.NET \组装),其中有一个 \ GAC_32 内......这是一旦他们安装,你会发现你的文件。而 \ GAC_64 目录

.NET 4 has it's own Assembly folder (c:\windows\Microsoft.NET\assembly) which has a \GAC_32 and \GAC_64 directories within... This is where you will find your files once they're installed.

希望有所帮助......

Hope that helps...

这篇关于海关总署32位与64位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆