Reputation: 659
Hopefully this is a simple question and I have just overlooked something somewhere...
I am writing VB.NET stuff in VS2010 on Windows 7 64-bit. It seems to build by default for a 32-bit target, how to I tell it to make a 64-bit executable?
I went to the project properties -> Compiler -> Advanced, but don't see the option anywhere.
Oh, and this is VS2010 Express, to be clear.
Upvotes: 3
Views: 29764
Reputation: 131423
It seems that you have to go to Build -> Configuration Manager and create a new solution platform from the Active Solution Platform dropdown and select x64 as the new platform. That will also change your Active Platform to x64 from x86.
Damn, but Visual Basic will never cease to surprise me! Or is this the Principle of Least Surprise, VB edition: VB will surprise you when you least expect it!
Upvotes: 3
Reputation: 42938
This involves using the Configuration Manager, it's not a part of the project properties.
Go to the Build Menu, then click Configuration Manager. Under Active solution platform, click New, then add one with x64 as the platform. Use this platform to compile for x64.
Upvotes: 11