Compile multiple projects from the command line

How do I compile multiple projects from the command line

If I don't use the "/project" option, the entire solution is being compiled.

If I use "/project" option, it allows to type only one project.

Thanks,

Noam.



Answer this question

Compile multiple projects from the command line

  • Oliver66

    In the Configuration Manager window, you can create a new solution configuration and you can filter for that particular configuration the projects that you don't want to build (the checkboxes on the right).
    Then on the command line you can run
    vcbuild solution.sln "YourNewConfiguration|Win32"
    or
    devenv solution.sln /Build "YourNewConfiguration|Win32"
    and the build process will skip the projects you don't want to build.
    Thanks,
    Marian Luparu
    Visual C++ IDE

  • Compile multiple projects from the command line