How can I include multiple configurations of a single project as a dependency?

New to this whole Visual Studio thing. Unix world is most of my background, so sorry if this is a simple question.

We have a solution which builds a number of libraries and .exe's. Our product is a combination of the libraries for different configurations - i.e. liba 32 and 64 bit, libb 32 and 64, etc. We have the projects all setup to build w/ the different configurations. And I can use 'batch build' to select which projects from a long list.

But I'd like to be able to say a solution build is building the solution for more than one selected configuration - all platforms, or all configurations. (or both I guess...)

I know there's batch build, but our list of libraries is rather long and going through this every time and selecting each sucks. (Can't do a 'select all' unfortunately...we don't build them all.)

Another option is command line scripts, and for nightlys that works. But sure would like a 'push button' solution, or a way to make a project/solution dependent on another project with configuration information.

Is there a way to do this

Thanks,

Perry S.



Answer this question

How can I include multiple configurations of a single project as a dependency?

  • E Man

    In my batch build dialog there is a "select all" button. What are you missing

    Also you can simply write a batch file an start the build from the command line using DEVENV.

    DEVENV Test.sln release /out testRelease.out
    DEVENV Test.sln debug /out testDebug.out

    Just call DEVENV with / to get all options.
    Note: You should call VSVARS32.BAT first to set the environment to the correct values.




  • Ciprian Gerea MSFT

    OK - thanks. If Macros are similar to Excel, then I'm good. And it does look very similar.

    thanks

    Perry


  • jhudson

    the only way I can think of to get the effect that you want is to write a macro to build all the bits that you are interested in, and then map a keystroke and/or toolbar item to that macro.

    josh

    VC++ project system developer



  • Bo Yu

    Look for MSbuild in the MSDN. The build process is very customizable now.

  • tijjj

    Yea - I know about these two. The batch build/select all would work, except we have 12 or so projects, 2 configs, 2 platforms. We don't build all of them w/ 2 platforms. If you select 64bit platform on project X, even if in the configuration manager you say build win32 for x64, it still builds it as an x64. So we have to go through the list of 48 different options in batch build and unselect a few. (not all our projects build both 32 and 64.) That takes time, and the batch build options don't seem to be remembered in the solution file - i.e. check out new project, have to go through the batch build list again.

    And I know about the command line option - for nightly building and packaging that's a fine option, but for development, repeated 'build twice - once for win32, once for x64' everytime in VS is becoming a pain.

    So looking for that single build solution or project which will allow dependencies to projects and platforms.

    So those options aren't quite what I'm looking for.

    Perry


  • How can I include multiple configurations of a single project as a dependency?