tldr/pages/common/msbuild.md

33 lines
803 B
Markdown
Raw Normal View History

2018-05-19 12:15:41 +01:00
# msbuild
> The Microsoft build tool for Visual Studio project solutions.
> More information: <https://learn.microsoft.com/visualstudio/msbuild>.
2018-05-19 12:15:41 +01:00
- Build the first project file in the current directory:
`msbuild`
- Build a specific project file:
`msbuild {{path/to/project_file}}`
- Specify one or more semicolon-separated targets to build:
2018-05-19 12:15:41 +01:00
`msbuild {{path/to/project_file}} /target:{{targets}}`
- Specify one or more semicolon-separated properties:
2018-05-19 12:15:41 +01:00
`msbuild {{path/to/project_file}} /property:{{name=value}}`
- Specify the build tools version to use:
2018-05-19 12:15:41 +01:00
`msbuild {{path/to/project_file}} /toolsversion:{{version}}`
- Display detailed information at the end of the log about how the project was configured:
`msbuild {{path/to/project_file}} /detailedsummary`
- Display help:
2018-05-19 12:15:41 +01:00
`msbuild /help`