NetOffice 加载项未加载 64 位 Office 2013 安装

NetOffice add-in not loading with 64 bit Office 2013 installation

我已经使用 NetOffice 构建了一个 Multi 加载项,它在 64 位 Office 安装上运行良好。任何人都知道所有注册表项都在正确的位置,它仍然显示在非活动加载项列表中,路径为空(见附图)

您必须针对 64 位编译加载项。 Office 等本机应用程序无法加载不同架构的 dll。这实际上在 NetOffice 文档中提到,在 Is NetOffice ready for multiple platforms(32/64 Bit)?:

部分

If you develop a COMAddin that is being used by a 64Bit Office application, you have to compile your assembly as x64. If you wart to support 32Bit and 64Bit Office applications, you may need to provide a second x64-compiled COMAddin. This behaviour is the same in all scenarios(interop,vsto or netoffice). A 64Bit application can only load 64Bit Dll's.

AnyCPU 体系结构意味着该程序集可由针对任何体系结构的 .NET 程序使用。它不适用于本机程序。 AnyCPU 在 COM 和互操作场景中被视为 32 位 dll