Bulk switching between x64 x86 in configuration projects

I have a HUGE solution in VS2010. there are about 60 projects (class libraries in most and third-party dependencies that I need to install) and more than 60 projects such as an installation project.

Of course, I want to be able to compile the solution for both platforms - x64 and x86

My question is: is there an easy way to do this? For example, it is impractical to check each project every time and switch between x64 and x86.

I have a classic solution - divided into 2 solutions, one for x64 and the other for x86.

What I was thinking about is to have as the main project in the solution, and the whole other project depends on its configuration - therefore, if the project is installed on x64, the whole solution will compile as x64, but vice versa.

+6
source share
1 answer

You do not need to go through each project and change the project properties each time. Have you tried to change the platform of active solutions through Configuration Manager? This should change all projects in the solution.

You can also see what the x86 / x64 / AnyCPU platform does for you. Unless you have specific needs, AnyCPU is likely to become the goal you want.

+1
source

Source: https://habr.com/ru/post/900882/


All Articles