Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to build "debug" and "release" in one command line for VS2008

How to build "debug" and "release" in one command line for VS2008

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingtutorialquestionannouncementworkspace
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nandu_77b
    wrote on last edited by
    #1

    To build a solution, you can simple pass in the path to the solution file and optionally a configuration, such as debug or release. Projects are compiled by using the Project switch, and you can build one project at a time, also optionally specifying the configuration to use. The syntax to use is: devenv solutionfile.sln /build [solutionconfig] [/project projectnameorfile [/projectconfig name]] My question is, 1)if we dont specify configuration either "debug" or "release" as it is optional, will it build both debug and release or any one (debug or release) by default. 2) Any idea how to build both "debug" and "release" in one command line. Thanks, Nandu

    L K 2 Replies Last reply
    0
    • N Nandu_77b

      To build a solution, you can simple pass in the path to the solution file and optionally a configuration, such as debug or release. Projects are compiled by using the Project switch, and you can build one project at a time, also optionally specifying the configuration to use. The syntax to use is: devenv solutionfile.sln /build [solutionconfig] [/project projectnameorfile [/projectconfig name]] My question is, 1)if we dont specify configuration either "debug" or "release" as it is optional, will it build both debug and release or any one (debug or release) by default. 2) Any idea how to build both "debug" and "release" in one command line. Thanks, Nandu

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Nandu_77b wrote:

      1)if we dont specify configuration either "debug" or "release" as it is optional, will it build both debug and release or any one (debug or release) by default.

      What happens when you try?

      Nandu_77b wrote:

      1. Any idea how to build both "debug" and "release" in one command line.

      No, but there may be some suggestions here[^].

      MVP 2010 - are they mad?

      1 Reply Last reply
      0
      • N Nandu_77b

        To build a solution, you can simple pass in the path to the solution file and optionally a configuration, such as debug or release. Projects are compiled by using the Project switch, and you can build one project at a time, also optionally specifying the configuration to use. The syntax to use is: devenv solutionfile.sln /build [solutionconfig] [/project projectnameorfile [/projectconfig name]] My question is, 1)if we dont specify configuration either "debug" or "release" as it is optional, will it build both debug and release or any one (debug or release) by default. 2) Any idea how to build both "debug" and "release" in one command line. Thanks, Nandu

        K Offline
        K Offline
        krmed
        wrote on last edited by
        #3

        I don't use the devenv program, but from a batch file I use something like this: vcbuild /r /useenv \Source\Mapp\bld\myapp.sln $ALL Hope that helps.

        Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups