Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I'm using Visual C# Express 2010.
Is it possible to compile the project to a 64-bit
application?

Thanks for all help.
Posted
Updated 26-Aug-12 6:39am
v3

By default if you are building to "ANY CPU" then your EXE will execute in 64bit mode on a 64bit machine on .net .

You can disable this and run in 32bit mode by setting the "Platform target" to x86 CPU in the project settings.
 
Share this answer
 
Comments
Mehdi Gholam 26-Aug-12 13:43pm    
Right click on your project->Properties->Build->Platform Target
Thomas Daniels 26-Aug-12 13:50pm    
Thanks! But before it's working, I must
first enable advanced build settings.
hello,

On Vs 2010 C# edition the anyCpu and x64 settings are hidden by default you need to enable them first.

Tool->Option then make sure the check box "show all settigns" is checked, then go to General and tick show advanced build configuration.

Then using the solution explorer you can right click on a project, select the project properties and access the platform settings in the Build tab.

Select AnyCpu, and if it does not exist you can add it.

Valery.
 
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