If I develop a 64 bit webpart DLL 开发者_Go百科does it work with SharePoint 2007 32 bit?
No can do. You can't load 64-bit DLL in a 32-bit process.
By default a .NET assembly will target "Any CPU" (see Build > Configuration manager in Visual Studio).
This means that the Intermediate Language (IL) code produced will be Just In Time (JIT) compiled into 32bit code when running on a 32 bit OS and 64 bit code when running on a 64 bit OS.
Unless you are doing something very funky (which is unlikely in a SharePoint web part) then you should leave it as "Any CPU" and simply not worry about it any more - it will just automagically work.
SO - Visual Studio “Any CPU” target
Visual Studio .NET Platform Target Explained
精彩评论