msbuild for visual studio 2010, build all configurations of a vcxproj file RRS feed

  • Question

  • How would get msbuild, build all the configurations contained in a vcxproj file?

    This was easy with vcbuild but not the same with msbuild.



    Tuesday, July 6, 2010 3:32 PM


  • Hi James,

    Yes, there are some differences between MSBuild and VCBuild, When invoked with no explicit project configuration, VCBuild used to build all Configuration and Platform matrix by default, MSBuild, in contrast, builds only the default “Debug | Win32”. Please see VCBuild vs. C++ MSBuild on the Command Line for detailed information.

    So if you want to build all configuartions for Visual C++ 2010 projects, you need to build four times with setting property for this projects, for example:

    msbuild my.vcxproj /p: Platform = "Win32", Configuration = "Debug"

    Or write a msbuild script to do it. For more information, please see:

    MSBUILD, WIN32, x64 and x86


    Nancy Shao [MSFT]
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by Nancy Shao Tuesday, July 13, 2010 3:45 AM
    Wednesday, July 7, 2010 2:37 AM