Msdev(CompileVCProject) [D: \ Program Files \ Microsoft Visual Studio \ common \ msdev98 \ bin \ msdev.exe]
0.Msdev /?Get help
1. Compile the debug/release version of a project (DSP) and use/Out[>] Output logs to a specified file
Msdev nmaketest. DSP/make "nmaketest-Win32 debug"/out build. Log
Msdev nmaketest. DSP/make "nmaketest-Win32 release"/out build. Log
Msdev nmaketest. DSP/make "nmaketest-all"> build. Log
2. Compile multiple projects (DSW)
Msdev nmaketest. DSW/make "nmaketest1-Win32 release" "nmaketest2-all"/out build. Log
3. Clear a project
Msdev nmaketest. DSP/make "nmaketest-Win32 debug"/clean/out build. Log
4. Clear and re-compile a project
Msdev nmaketest. DSP/make "nmaketest-Win32 debug"/rebuild/out build. Log
5. Other options
/NorecurseDo not compile dependent projects
/UseenvIgnore path configuration under tools/options/directories settings and use path configuration under Environment Variables
++ ++
Devenv.com(CompileVSProject) [D: \ Program Files \ Microsoft Visual Studio 9.0 \ common7 \ ide \ devenv.com]
0.Devenv.com /?Get help
1. Compile a project debug/release and use/Out[>] Output logs to a specified file
Devenv.com vsnmaketest. vcproj/build "Debug | Win32"/out build. Log
Devenv.com vsnmaketest. vcproj/build "Release | Win32"> build. Log
Devenv.com vsnmaketest. sln/build "Release | Win32"/Project "vsnmaketest \ vsnmaketest. vcproj"> build. Log
2. Compile a solution
Devenv vsnmaketest. sln/build "Debug | Win32"/out build. Log
Devenv vsnmaketest. sln/build "Release | Win32"> build. Log
3. Clean up projects/solutions
Devenv vsnmaketest. vcproj/clean "Debug | Win32"/out build. Log
Devenv vsnmaketest. sln/clean "Release | Win32"> build. Log
4. Clear and recompile a project/SOLUTION
Devenv vsnmaketest. vcproj/rebuild "Debug | Win32"/out build. Log
Devenv vsnmaketest. sln/rebuild "Release | Win32"> build. Log
5.Vcbuild
[Win32 version: D: \ Program Files \ Microsoft Visual Studio 9.0 \ Vc \ vcpackages]
[X64 version: D: \ Program Files \ Microsoft Visual Studio 9.0 \ Vc \ bin \ amd64]
CompileVcprojProject. 【Vcbuild.exe /?] For more help.
Vcbuild.exe "/platform: Win32 vsnmaketest. vcproj debug
Vcbuild.exe "/rebuild/platform: Win32 vsnmaketest. vcproj release
Vcbuild.exe "/clean/platform: Win32 vsnmaketest. vcproj release
6.Msbuild
If Visual Studio is not installed on your machine, you can use msbuild to compile. sln or. Project (C ++/C #/Vb ).
Msbuild can be installed by installing. netframework. The general installation path is c: \ windows \ Microsoft. NET \ framework \ version.
In fact, when devenv executes the build, msbuild is also called in the background. 【Msbuild.exe /?] For more help.
Msbuild vsnmaketest. sln/T: rebuild/P: configuration = release
Msbuild vsnmaketest. vcproj/T: rebuild/P: configuration = debug
Msbuild vsnmaketest. vcproj/T: Clean/P: configuration = debug
Msbuild vsnmaketest. csproj/T: build/P: configuration = debug; platform = x86; targetframeworkversion = v3.5