VC/Vs project command line compilation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.