在64位计算机上编译时出错。 [英] Error while compiling on a 64-bit machine.
问题描述
你好,
当我在发布模式下在64位计算机上编译我的SharePoint 2007解决方案并且平台设置为AnyCPU或x86时,我收到以下错误:
When I compile my SharePoint 2007 solution on a 64-bit machine in Release mode and the platform set to AnyCPU or x86 I get the following error:
试图加载格式不正确的程序集:C:\Program Files \ Common Files \ Microsoft共享\ Web服务器扩展\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ >
当我在Microsoft.Office.Server.Search.dll上使用.Net Reflector时,它表示平台设置为x64。因此,我将设置更改为发布模式,将平台更改为x64并获得相同的错误。
When I use .Net Reflector on Microsoft.Office.Server.Search.dll it says the platform is set to x64. So I change my settings to Release mode and the platform to x64 and get the same error.
奇怪的是我改变时发布到调试,它符合。任何人都可以解释这个吗?
The strange thing is when I change Release to debug, It complies. Can anyone explain this?
我更愿意使用Release / AnyCPU设置进行编译。任何人都可以推动我朝着正确的方向前进吗?
I would prefer compiling with the settings Release/AnyCPU if its possible. Can anyone give me a push in the right direction?
谢谢
推荐答案
我认为Office处于32位模式。我不知道编译器会捕获错误我认为它只会在运行时显而易见。将BUILD格式设置为32Bit,你应该没问题。
I think Office is in 32 bit mode. I didn't know the compiler would catch the error I thought it would only be apparent at run time. Put the BUILD format to 32Bit and you should be OK.
Renee
这篇关于在64位计算机上编译时出错。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!