Command-line tools
- To build a C/C++ project at a command prompt, Visual Studio provides these command-line tools:
CL.exe
- Use the compiler (cl.exe) to compile and link source code files into apps, libraries, and DLLs.
Link.exe
- Use the linker (link.exe) to link compiled object files and libraries into apps and DLLs.
MSBuild.exe
- Use MSBuild (msbuild.exe) and a project file (.vcxproj) to configure a build and invoke the toolset indirectly. It’s equivalent to running the Build project or Build Solution command in the Visual Studio IDE. Running MSBuild from the command line is an advanced scenario and not commonly recommended.
- (命令行參考)https://docs.microsoft.com/zh-cn/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2015
DEVENV.exe
- Use DEVENV (devenv.exe) combined with a command-line switch such as /Build or /Clean to execute certain build commands without displaying the Visual Studio IDE. In general, DEVENV is preferred over using MSBuild directly, because you can let Visual Studio handle the complexities of MSBuild.
NMAKE.exe
- Use NMAKE (nmake.exe) on Windows to build C++ projects based on a traditional makefile.When you build on the command line, the F1 command isn’t available for instant help. Instead, you can use a search engine to get information about warnings, errors, and messages, or you can use the offline help files. To use the search in docs.microsoft.com, use the search box at the top of the page.