32-bit and 64 bit module
Emanuele Croci
Deal all,
I have a big dubt about how to deploy and compile my own SwissAddonFramework modules.
1. Compiling:
I create a MYMODULE_x86 .Net VisualStudio 2010 project:
- compiling as "Debug" and for x86 environment
- including the SwissAddonFramework, Loader, etc... x86 DLLs
- I create the MYMODULE_x86.sip file
I create a MYMODULE_x64 .Net VisualStudio 2010 project (with the same source code of MYMODULE_x86 project):
- compiling as "Debug" and for x64 environment
- including the SwissAddonFramework, Loader, etc... x64 DLLs (copying them from the SAP B1 x64 client / COR / coresuite folder)
- I create the MYMODULE_x64.sip file
I install the x64 sip file in the SAP B1 x64 client. it add the x64 MYMODULE SwissAddon module.
I install the x86 sip file in the SAP B1 x86 client. it add the x86 MYMODULE SwissAddon module.
But when I logon into SAP B1 x64 I cannot find the MYMODULE SwissAddon module. I find it only in the SAP B1 x86 client.
How can I install both the two version (x64 and x86) in the two clients (x86 and x64)?
I must use two different name of the module (i.e. MYMODULE_x64 and MYMODULE_x86)?
Best regards
Emanuele
Sonja Altschuh
Hi Emanuele,
did you check http://forum.coresystems.ch/index.php?/topic/6205-framework-development-version/? I believe this should answer your question.
Kind regards,
Sonja
Emanuele Croci
Dear Sonja,
reading the article I understand something more...
but if I compile the project as ANY CPU on a x64 development server including the x64 library, I'm gererating x64 executable and dll files.
I think it's not correct deploying a x64 package for SAP B1 32-bit client.
Hence, I'd like to compile a project with x64 engine and 64-bit DLLs and deploy it in SAP B1 64-bit client
and then
compile the same project with x86 engine and 32-bit DLLs and deploy it in SAP B1 32-bit client.
I think I should change the coresuite module name for the x86 version otherwise the last deploy overwrite the first one.
Best regards
Emanuele
Anders Olsson
Hello Emanuele,
If you build your project with the AnyCPU setting on a 64-bit machine you will not generate a 64 bit dll. It will run on 32-bit and 64-bit.
In fact this is how all the coresuite modules are built (customize, designer etc). Also you only need to create one sip file that would run on any system.
It is only coresuite itself (coresuite.exe) that is architecture specific.
So, build with AnyCPU and everything will be easier!
Regards,
Anders
Emanuele Croci
Thank you very much, Anders.
Best regards
Emanuele
Please sign in to leave a comment.
Comments
0 comments