Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bulk switching between x64 x86 in setup projects

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.

like image 366
eddyuk Avatar asked Nov 06 '11 12:11

eddyuk


People also ask

How do I change from x86 to x64 in Visual Studio?

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.

How do I change a platform target from x86 to a CPU?

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.

How do you change the active solution platform?

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.

What is active solution platform in Configuration Manager?

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.


1 Answers

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.

like image 84
GaTechThomas Avatar answered Oct 11 '22 01:10

GaTechThomas