Edit

Share via


MSBuild reference for C++ projects

MSBuild is the native build system for all projects in Visual Studio, including C++ projects. When you build a project in the Visual Studio integrated development environment (IDE), it invokes the msbuild.exe tool, which in turn consumes the .vcxproj project file, and various .targets and .props files. In general, we strongly recommend using the Visual Studio IDE to set project properties and invoke MSBuild. Manually editing project files can lead to serious problems if not done correctly.

If for some reason you wish to use MSBuild directly from the command line, see Use MSBuild from the command line. For more information about MSBuild in general, see MSBuild in the Visual Studio documentation.

In this section

MSBuild internals for C++ projects
Information about how properties and targets are stored and consumed.

Common macros for build commands and properties
Describes macros (compile-time constants) that can be used to define properties such as paths and product versions.

File types created for C++ projects
Describes the various kinds of files that Visual Studio creates for different project types.

Visual Studio C++ project templates
Describes the MSBuild-based project types that are available for C++.

C++ new item templates
Describes source files and other items you can add to a Visual Studio project.

Precompiled header files How to use precompiled header files and how to create your own custom precompiled code to speed up build times.

Visual Studio project property reference
Reference documentation for project properties that are set in the Visual Studio IDE.

See also

C/C++ Building Reference