Is there any way to build a solution for more than one platform (i.e. Win32 & x64) with a single command I currently have to select a platform, build the solution, select the other platform and build again.
I've tried devenv /build from the command line but it crashes during the build.
If there is no direct support for multiplatform build perhaps a macro could do it
Thanks,
Flavio.

Multiplatform build
Girishk
I'm using VS 2005. Using batch build works but there are some implications. For example in setup projects using the "(Active)" project output doesn't work, so you have to specify the desired configuration.
Also the build isn't multi-threaded, i.e. only one project is built at a time, while regular solution builds allow to build multiple projects at the same time to exploit multiple CPUs.
I've tried to use a macro to send the switch configuration, switch platform and build commands but I can't seem to find how to switch platform.
I can switch configuration using
objDTE.Solution.SolutionBuild.SolutionConfigurations.Item(
"UploadRelease").Activate()but the active platform is set to "Any CPU" and I don't know how to switch it to "Win32" or "x64". I've tried
objDTE.ExecuteCommand("Build.SolutionPlatforms", "Win32")
but it doesn't work, probably because it just emulates the pressing of the UI button and doesn't wait for the action to complete. Calling Sleep() after the command doesn't seem to work either.
Flavio.
MohitGupta
What VS version are you using. My tip would have been to use DEVENV from the command line!
But you can use "Batch Build" from the Project menu. You can build all platforms from here too!
acorn_atom
Projects are built parallelely, according to the "maximum number of parallel project builds" option in the Projects And Solutions/Build and Run dialog box. Unless I'm missing something that option doesn't seem to apply to batch builds, only to the "build solution" command.
Flavio.
Jeff Blake
I don't really understand your problem. What do you want to control. Did you ever looked in the dialogs I told you
There was never a multi threaded build in VS and it was never announced. If you want to use such a feature use VCBuild from the gotdotnet pages.
http://www.gotdotnet.com/team/cplusplus/