LinuxCommandLibrary

msbuild

msbuild

TLDR

Build the first project file in the current directory

$ msbuild
copy


Build a specific project file
$ msbuild [path/to/project_file]
copy


Set one or more semicolon-separated targets to build
$ msbuild [path/to/project_file] /target:[targets]
copy


Set one or more semicolon-separated properties
$ msbuild [path/to/project_file] /property:[name=value]
copy


Set the build tools version to use
$ msbuild [path/to/project_file] /toolsversion:[version]
copy


Display detailed information at the end of the log about how the project was configured
$ msbuild [path/to/project_file] /detailedsummary
copy


Display detailed help information
$ msbuild /help
copy

Copied to clipboard