开发者

64 bit webpart on SharePoint 2007 32 bit

开发者 https://www.devze.com 2022-12-16 06:13 出处:网络
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\" (se

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

0

精彩评论

暂无评论...
验证码 换一张
取 消