Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot change build platform from AnyCPU to x64 in VS 2022

I have a VS 2022 (v17.0.1, 64 bit) solution with multiple projects as shown below. I can select x64 as the platform for the solution but only the Global project can have its platform changed to x64. I want to change the platform of all other projects to x64 but clicking on the Platform combo box for any other projects only gives Any CPU as an option. There are no <New...> or <Edit...> options shown except for the Global project. enter image description here

like image 472
SimonKravis Avatar asked Oct 11 '25 23:10

SimonKravis


1 Answers

To add or change configurations, use the "Configuration Manager" button at the top of that dialog. That dialog looks very similar, but you have the "New..." or "Edit..." entries.

Note that for C# projects, the setting is mostly irrelevant nowadays, as code will anyway be compiled in AnyCPU mode.

like image 69
PMF Avatar answered Oct 14 '25 16:10

PMF