简体   繁体   中英

How to get a 64bit exe file from the solution?

When you make any project using Visual Studio there's usually the "Release" and the "Debug" folder, which contain the .exe files of the solutions. How do I "export" a 64bit version of that exe?

If you right click your project, then choose properties, under the Build option, there is an option called Platform target with a drop down, you can switch this to target Any CPU, x64, and x86. Just set this to x64 if you want it to target 64 bit only, but then you run the risk of your application not working on a 32 bit system.

  1. Right-click your project and select Properties : 右键单击您的项目

  2. On your Build tab, select Platform target to x64 : 选择x64

  3. Don't forget that you should also change Configuration to Release and select x64 again so that Debug and Release configurations are all x64. 在发布时选择x64


Note:

  1. If your project needs a XAML designer, the designer will stop working if your project targets x64.
  2. You can select AnyCPU and uncheck "Prefer 32~bit" instead of x64 because it will also run as a 64-bit process in a 64-bit operating system.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM