2

I have a project that was build in Microsoft Visual C# Express 2010. The program was originally built as a 32-bit application, and I want to change that to a 64-bit application.

How can I do that?

Michael Edenfield
  • 28,070
  • 4
  • 86
  • 117
wael34218
  • 4,860
  • 8
  • 44
  • 62
  • you don't have the target option in express? – alexb Jan 16 '13 at 12:02
  • @alexb I forgot to mention that it is my very first project on visual express stuff. So, I am not sure where to find the target option. – wael34218 Jan 16 '13 at 12:08
  • @wael34218 Ahh forgot about that. I dont think the option is available with the Express version. You're most likely stuck with x86 unless there is some kind of way around it. – Anonymous Jan 16 '13 at 12:17
  • It _is_ possible in the express edition. See my answer. – ispiro Jan 16 '13 at 12:20
  • @wael34218 I don't have express but here is how it is in non-express: right click on your project -> Properties -> Build tab -> General Section -> Platform Target (Any CPU, x86, x64, Itanium) – alexb Jan 16 '13 at 12:54
  • @wael34218 ... or if you don't have a Project node in Solution Explorer you search in menu for Build -> Configuration Manager -> Platform dropdown -> New and you should be able to see all platform targets – alexb Jan 16 '13 at 12:58

3 Answers3

3

See my answer here, and the comments below it (if you can't find "Configuration Manager").

Tools -> Options -> check the box in the bottom left -> Projects and Solutions -> General -> Show advanced build configurations.

Community
  • 1
  • 1
ispiro
  • 26,556
  • 38
  • 136
  • 291
1

I dont think any conversion is necessary as long as you built it with 'Any CPU'. This option can be accessed through the project properties windows -> build tab -> Platform target dropdown.

However, the option to change the target platform is not available if you're running VS Express edition.

Anonymous
  • 1,978
  • 2
  • 28
  • 37
  • [Not always](http://stackoverflow.com/questions/9177275/is-there-a-difference-between-a-32-bit-net-application-and-a-64-bit-net-applic) Any CPU is enough – alexb Jan 16 '13 at 12:00
  • I just noticed that my program has the following `using Microsoft.Win32`. Not sure if I have to do anything about it – wael34218 Jan 16 '13 at 12:06
  • [It seems](http://stackoverflow.com/questions/982625/why-is-there-no-microsoft-win64-namespace) you don't have to do – alexb Jan 16 '13 at 12:24
0

Additional info regarding when to specifically target 64x rather than 'Any CPU', although it doesn't seem it now, this would have to change if you were intending to use 64x DLL's (would have added this as a comment, but I think it is extremely useful).

When to target x64 in Visual Studio

Community
  • 1
  • 1
Lojko
  • 173
  • 1
  • 13