How to build "debug" and "release" in one command line for VS2008
-
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
-
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
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:
- 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?
-
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
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