to compile a custom activity you can use in the CLI of the C# compiler the platform switch to decide on which version the assembly can run. Is there a preferred platform for UiPath? Or does it not matter? UiPath itself uses x86 platform, as far as I know. IntPtr.Size delivers 4, that means 4 * 8 = 32 bit = x86.
Thanks for hints and tips.