Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, October 22, 2019 8:20 PM
The procedure described at https://docs.microsoft.com/en-us/visualstudio/ide/how-to-configure-projects-to-target-platforms?view=vs-2019 does not work.
Build => Configuration Manager => does not display 64 bit as an option. Selecting "new" requests a name. I don't see selecting a new platform as an option.
bhs67
All replies (6)
Wednesday, October 23, 2019 12:57 PM ✅Answered
After trying both options, I like the right click Project -> Properties -> Build -> General -> Platform Target -> x64. This keeps everything cleaner. Thanks!
bhs67
Tuesday, October 22, 2019 10:03 PM
I am using VS 2019, and the link is spot on, and maybe, you don't understand how to use it. It's set to 'Any CPU' that allows the .NET runtime to run the assembly as 32 or 64 bit based on the deployment CPU the program is deployed to. You can also select 'new' and set a 32 or 64 bit profile exclusively for the project.
It also talks about taking other paths to select Any CPU, 32bit or 64bot project profiles.
Wednesday, October 23, 2019 1:12 AM
Hi bhs67,
I'm not sure if I can understand what you want to do.
I take your description in a few ways.
You want to
1) make VS 2019 itself run with 64-bit
2) make a project run with 64-bit using VS 2019
3) make 64-bit application as default in VS 2019
I suppose 1) and 3) is impossible. Which do you want?
We can make a specific project run with 32-bit, 64-bit, or depend on platform.
# We can know if it is running with 32-bit or 64-bit, in TaskManager.
Regards,
Ashidacchi -- http://hokusosha.com
Wednesday, October 23, 2019 6:12 AM
Hi bhs67,
Welcome to the MSDN forum.
As far as l know, Any CPU will compile your project to run on any platform which means both on the x86 and x64 platform.
If you still want to change it to x64 platform, you can select Build-->Configuration Manager-->You can choose different types for different projects, and if you don't have the x64 target platform, you can create it like this:
So you can specify your program to run on 64-bit platforms.
**>> 2. **You can also specify the target platform in the project properties as Ashidacchi said(Right-click on your every project-->Properties-->Build-->set Platform target to x64)
Hope it could help you.
Best Regards,
Perry
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]
Wednesday, October 23, 2019 12:33 PM
Yesterday, I started with Build -> Configuration Manager I could not find x64 in any combo box.
I don't recall the specific details, but I tried <new> and never found x64.
After reviewing the responses, today, I found x64 in the Platform combo box.
It also appears correctly under right click Project -> Properties -> Build.
bhs67
Thursday, October 24, 2019 1:21 AM
Hi bhs67,
We are glad to hear that you have got your answer. Congratulations to you.
Since your issue is solved, please remember to mark it as answer so that it will help other community members search and handle similar issues.
If you have any other issues about this,we welcome you to ask questions in this forum.
Have a nice day!
Best Regards,
Perry
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]