LinuxCommandLibrary
GitHub F-Droid Google Play Store

msbuild

microsoft Build Engine

TLDR

Build solution
$ msbuild [solution.sln]
copy
Build specific configuration
$ msbuild [project.csproj] /p:Configuration=[Release]
copy
Build specific target
$ msbuild /t:[Clean]
copy
Restore and build
$ msbuild /t:Restore;Build
copy
Set verbosity
$ msbuild /v:[detailed]
copy
Build with parallelism
$ msbuild /m:[4]
copy
Build to output directory
$ msbuild /p:OutputPath=[bin/output]
copy

SYNOPSIS

msbuild [options] [projectfile_]

DESCRIPTION

msbuild is the Microsoft Build Engine. It builds .NET applications and solutions.The tool processes project files. Supports parallel builds and custom targets.

PARAMETERS

PROJECTFILE_

Solution or project file.
/t: TARGET
Target to build.
/p: PROPERTY=VALUE
Set property value.
/v: LEVEL
Verbosity level.
/m [N]
Maximum parallel builds.
/restore
Run restore before build.
/?
Display help information.

CAVEATS

Requires .NET SDK. Windows-centric but cross-platform. XML-based project files.

HISTORY

MSBuild was created by Microsoft as the build platform for .NET, first released with Visual Studio 2005.

SEE ALSO

dotnet(1), make(1)

Copied to clipboard
Kai

AltStyle によって変換されたページ (->オリジナル) /