I have a HUGE solution in VS2010. there are about 60 projects (class libraries at most and 3rd party dependencies I need to install) and more than 60 projects of setup project type.
Of course, I want to be able to compile the solution to both platforms - x64 and x86
My question is: is there a simple way to do so? Like, its not reasonable to go through each project properties each time and switch between x64 and x86.
I have classic solution - split to 2 solutions, one for x64 and another for x86.
The way I was thinking about, is to have like a master project in the solution, and all other project depended on its configuration - so if the project is set to x64 all of the solution will compile as x64 and the other way around.
From the BUILD menu in Visual Studio, select Configuration Manager. From the Active solution platform drop-down list, select New. The New Solution Platform dialog displays. In the Type or select new platform combination box, select x64.
In the Configuration Manager dialog, open the Active solution platform drop-down list box and click <New> …. In the New Solution Platform dialog, select x64 in the Type or select the new platform drop-down list box. Select x86 in the Copy settings from drop-down list box. Click OK.
On the Build menu, click Configuration Manager. In the Active solution platform box, select the platform you want your solution to target, or select <New> to create a new platform.
The Active Solution Platform allows you to configure a specific combination of configurations for each project. The Project Platform allows you to make specific configuration settings for a project.
You shouldn't have to go through each project and change the project properties each time. Have you tried changing the active solution platform via Configuration Manager? That should change all projects in the solution.
You may also want to look into what the x86/x64/AnyCPU platform target does for you. Unless you have specific needs, AnyCPU will likely be the target that you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With