How to do RegAsm so that it cover 32-bit and 64-bit?(如何进行 RegAsm 以使其涵盖 32 位和 64 位?)
问题描述
我有一个 C# 准备的 DLL 文件,我的系统是 Windows 7 64 位.当我应用 RegAsm 时,它不会将注册表添加到 64 位路径,而只会将其添加到 32 位路径.
I have a DLL file prepared by C# and my system is Windows 7 64-bit. When i apply the RegAsm its not adding the registry to 64-bit path but only adding it to 32-bit path.
"C:WindowsMicrosoft.NETFramework64v4.0.30319RegAsm.exe" /register /codebase "C:o.dll"
然后,如果我在 regedit.exe 中检查我的 GUID,我会发现它只存在于 32 位注册表路径中:HKEY_CLASSES_ROOTCLSID{...我的 guid 在这里找到 ....}代码>
then if i check my GUID in regedit.exe i see that i have it only in 32-bit registry path: HKEY_CLASSES_ROOTCLSID{... my guid is found here ....}
而不是 HKEY_CLASSES_ROOTWow6432NodeCLSID{... not found my guid ...}
因此,我对此还有其他问题.谁能建议发生了什么以及为什么它不生成 32 位和 64 位注册表项?"
As a result i have other issues for this. Can anyone please suggest what is going on and why its not making 32-bit and 64-bit registry entries?"
推荐答案
你有它倒退.Wow6432Node 是 32 位特定数据所在的位置.使用 32 位 regasm(来自 Framework 目录,而不是 Framework64 目录)在 Wow6432Node 中注册您的组件.
You have it backwards. The Wow6432Node is where the 32-bit specific data goes. Use the 32-bit regasm (from the Framework directory, not the Framework64 directory) to have your component registered in the Wow6432Node.
这篇关于如何进行 RegAsm 以使其涵盖 32 位和 64 位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何进行 RegAsm 以使其涵盖 32 位和 64 位?
- 为什么 C# 中的堆栈大小正好是 1 MB? 2022-01-01
- 在 C# 中异步处理项目队列 2022-01-01
- Windows 喜欢在 LINUX 中使用 MONO 进行服务开发? 2022-01-01
- 使用 rss + c# 2022-01-01
- C# 通过连接字符串检索正确的 DbConnection 对象 2022-01-01
- 在 LINQ to SQL 中使用 contains() 2022-01-01
- CanBeNull和ReSharper-将其用于异步任务? 2022-01-01
- 带问号的 nvarchar 列结果 2022-01-01
- 是否可以在 .Net 3.5 中进行通用控件? 2022-01-01
- Azure Active Directory 与 MVC,客户端和资源标识同一 2022-01-01
