I have a Windows Forms project that is written by C# language in Visual Studio 2010. I have to run my exe both for x86 and x64 processors. Every time i am changing the configuration to compile for both processor types. Is there any change to compile the source code at once for both x86 and x64 processor types?
Share
You should choose the
AnyCPUconfiguration and your app will run in 32bit if your OS is 32bit and in 64bit if the OS is 64bit. You should thank theJITcompiler that translates yourMSILcode to the appropriate bitness required by the hosting environment.Said that, however, your should keep in mind, if you use drivers or other libraries that are not compiled in the same mode, you will find problems in your deployment. You will need both libraries (64/32) and you need to install/deploy the correct one for the destination machine.
(Comes to mind the initial mess with
ACE/Jet OleDBproviders)