Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I am confused what setting of target platform should be chosen to enable my application to run on all computers, regardless of the processor type. I tried All CPU but it did not work on a few computers.

Thanks
Posted

It depends upon the type of solution you are using. For example if you want to use Ms-Access database from C# using jet connection, then your application has to be x86 as the driver is available only as x86. Similarly if you use a specific assembly that is meant for x64 platform then the target assembly must be x64. 'All' is generalized which specifies that the application can be run under any target. It can be selected if your project is not dependent on any resources that is specific to either x86 or x64.
 
Share this answer
 
Checkout this: AnyCPU Exes are usually more trouble than they're worth[^].

Once you understand the meaning of the setting. make up xour mind under which OS configuration your program is supposed to work. If your program depends on some 3rd party libraries that require one or the other target confuguration, you have no choice to set the EXE to that target configuration.

Cheers
Andi
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900