微軟編譯全家桶簡介

原文鏈接:https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2019

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.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章